Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: hashes - finding values

by pfaut (Priest)
on Jul 03, 2003 at 13:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://271160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found