Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Accessing a value without knowing the key

by fingers (Acolyte)
on May 16, 2001 at 06:59 UTC ( #80792=note: print w/replies, xml ) Need Help??


in reply to Getting readable results from Net::SNMP get_table method

Now that I can print out the entire hash and I know that I'm getting the data that I eventually want to use. I am stuck at trying to figure out how to access values in my hash without knowing exactly what the keys are.

  • Comment on Accessing a value without knowing the key

Replies are listed 'Best First'.
Re: Accessing a value without knowing the key
by dws (Chancellor) on May 16, 2001 at 08:32 UTC
    I am stuck at trying to figure out how to access values in my hash without knowing exactly what the keys are.

    @values = values %hash;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2023-02-03 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (24 votes). Check out past polls.

    Notices?