Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: hash name as a variable?by samtregar (Abbot) |
on Sep 15, 2004 at 20:54 UTC ( [id://391292]=note: print w/replies, xml ) | Need Help?? |
$HREF = eval "\\\%$DB_name";
Ouch. Please don't do that! And if you do, please check $@ afterwards since eval will trap fatal errors silently. -sam
In Section
Seekers of Perl Wisdom
|
|