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

Re: Hash keys not DWIMming

by ruzam (Curate)
on Oct 08, 2010 at 00:52 UTC ( #864119=note: print w/replies, xml ) Need Help??


in reply to Hash keys not DWIMming

You may also find it interesting, that what's good for the goose is also good for the gander.

Just as you can use an unquoted key while using your hash:

print $h{world}, "\n";

You can also use an unquoted key while creating your hash:

my %h = ( '512_x64' => '24', world => 'hello');

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://864119]
help
Chatterbox?
[ambrus]: Corion: re stops the timer, sure, but stopping won't erase events already queued, right?
[ambrus]: really I don't know how it works

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2016-12-09 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.