Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Simple Anon Hash Query

by rodion (Chaplain)
on Jan 21, 2007 at 12:57 UTC ( [id://595761]=note: print w/replies, xml ) Need Help??


in reply to Simple Anon Hash Query

Also note that your third level key in the example is the literal word "key". Perl puts quotes around "bare words" that are in the position of hash keys. If you mean't this as a variable (it's lower case, unlike the other keys), then you need a dollar sign before it. This is an easy mistake to make when you're a newbie coming from another language. (Also, don't start relying on bare word keys, since this feature will probably go away in Perl6.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://595761]
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: (3)
As of 2024-04-19 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found