in reply to How to access hash value based on user defined condition.

You would benefit from prepending
use strict; use warnings;
to all your Perl code from now on. Always.

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"};
--
Andreas