Dan Muey wrote:
> 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);

   use DBI;
   print DBD::_::db->quote('Hello');

perldoc -m DBI

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to