Phil Lawrence on 26 Jan 2004 21:07:13 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: perl DBI question


Malcolm wrote:

my $hash = {'some'=>'data'};
my $quoted = $dbh->quote($hash->{'some'});

at which point $quoted is undefined.

I suggest 1, 2, or 3 things: 1. Use Data::Dumper; print Dumper($hash);

2.  Not a suggestion, but did you know that DBI
    auto-quotes bound in variables?

3.  sprinkle debug print statements in the DBI
    source.  The quote method is only a few lines long...

Phil
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**