in reply to How to access hash value based on user defined condition.
to all your Perl code from now on. Always.use strict; use warnings;
Your code would probably work if you'd change it into something like:
use strict; use warnings; # ... my %mysql = (); while (my ($keyword, $value) = $sth->fetchrow_array()) { $mysql{$keyword} = $value; } print $mysql{"back_log"};
|
|---|