Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Issues with Hashes

by ssandv (Hermit)
on Mar 23, 2010 at 17:38 UTC ( [id://830350]=note: print w/replies, xml ) Need Help??


in reply to Issues with Hashes

sort keys is the answer to the first part. sort is pretty useful for getting a list in order, and pretty powerful in that it lets you use your own sort order if you want.

As for the second part, $Verbs{$cmd} will be a hashref (the value associated with the key $cmd ), and you can then look at $Verbs{$cmd}{discrete} to see the value there.

Replies are listed 'Best First'.
Re^2: Issues with Hashes
by jedikaiti (Hermit) on Mar 23, 2010 at 18:19 UTC
    Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found