Dan Muey
2003-12-11 18:53:35 UTC
Howdy!
I'm creating some sql entries into a text file.
I'd like to use DBI's quote function without having to
connect to a database and without having to create my own!
Is that possible?
I've tried importing quote, doing DBI::quote, DBI::db::quote, and various versions of that.
Any ideas?
GOAL:
use DBI;
my $quoted_data = DBI->quote($data);
Instead of
use DBI;
my $dbh - DBI->connect(...)...;
my $quoted_data = $dbh->quote($data);
TIA
Dan
I'm creating some sql entries into a text file.
I'd like to use DBI's quote function without having to
connect to a database and without having to create my own!
Is that possible?
I've tried importing quote, doing DBI::quote, DBI::db::quote, and various versions of that.
Any ideas?
GOAL:
use DBI;
my $quoted_data = DBI->quote($data);
Instead of
use DBI;
my $dbh - DBI->connect(...)...;
my $quoted_data = $dbh->quote($data);
TIA
Dan