|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Greetings all,
I've been having a problem with the 'quote' function in DBI that I still
haven't been able to resolve, so I thought I'd ask in case I'm missing
something obvious.
The code in question looks something like:
my $dbh =DBI->connect( 'dbi:mysql:database=$db', $user, $passwd);
my $hash = {'some'=>'data'};
my $quoted = $dbh->quote($hash->{'some'});
at which point $quoted is undefined.
However:
my $dbh =DBI->connect( 'dbi:mysql:database=$db', $user, $passwd);
my $hash = {'some'=>'data'};
my $temp = $hash->{'some'};
my $quoted = $dbh->quote($temp);
results in $quoted having the correct value ('data');
(This is all running under Mason/apache/mod_perl, in case it makes any
difference).
Any ideas?
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|