Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: hashes - finding values

by pfaut (Priest)
on Jul 03, 2003 at 13:34 UTC ( #271160=note: print w/replies, xml ) Need Help??


in reply to hashes - finding values

If you want the value from the hash added to the array, use push @new_array,$hash{$thing}. The code you posted pushes the key, not the value.

90% of every Perl application is already written.
dragonchild

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2020-10-30 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (280 votes). Check out past polls.

    Notices?