Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re: hash name as a variable?
in thread hash name as a variable?

   $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

Replies are listed 'Best First'.
Re^3: hash name as a variable?
by jeremyh (Beadle) on Sep 15, 2004 at 21:05 UTC
    Thanks - I think you just helped me solve a different problem.
    Checking $@ showed where my script was bombing.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://391292]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-28 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found