Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: eval a reference to a my hash

by chromatic (Archbishop)
on Apr 05, 2006 at 17:48 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://541460]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found