Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perl Hashes

by betterworld (Curate)
on Apr 24, 2007 at 09:55 UTC ( #611676=note: print w/replies, xml ) Need Help??


in reply to Perl Hashes

You may use references (see perlref) for this:
my %hash = ( var => \$dw_VAR, str => \$dw_STR, ); print "str is ", ${$hash{str}}, "\n";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2023-02-07 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (39 votes). Check out past polls.

    Notices?