Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: list values of specific hash keys

by mikeraz (Friar)
on Feb 27, 2012 at 20:32 UTC ( [id://956516]=note: print w/replies, xml ) Need Help??


in reply to list values of specific hash keys

Another guess, is @value_table empty when you try to use it later? If so, you need to declare it outside of your foreach{} block. As in

my @value_table; foreach my $key (@keys){ my $value = $hash{$key}; push @value_table, $value; } #use @value_table for whatever


Be Appropriate && Follow Your Curiosity

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found