Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Simple Anon Hash Query

by rodion (Chaplain)
on Jan 21, 2007 at 12:57 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2021-09-28 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?