Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Variable name

by f00li5h (Chaplain)
on Dec 08, 2008 at 23:07 UTC ( [id://729052]=note: print w/replies, xml ) Need Help??


in reply to Variable name

... you really do want a hash.

use warnings; use strict; my %f = ( oo => 'cats' ); print $f{ oo };

using an explicit hash instead of using the symbol table as a hash seems like the right thing to do ...

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Update would have worked just as well as a reply to Re^2: Variable name by Joost

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-20 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found