Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: eval a reference to a my hash

by chromatic (Archbishop)
on Apr 05, 2006 at 17:48 UTC ( #541460=note: print w/replies, xml ) Need Help??


in reply to Re^2: eval a reference to a my hash
in thread eval a reference to a my hash

By the time the eval STRING code runs, lexicals don't really have names anymore, so Perl can't look them up by name.

Replies are listed 'Best First'.
Re^4: eval a reference to a my hash
by cdarke (Prior) on Apr 07, 2006 at 10:13 UTC
    And that explains why making them our variables fixes the problem. Many thanks (I'm using an extra hash now and got rid of the eval, but it is worth knowing).
    Cheers

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-07-05 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?