Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Issues with Hashes

by ssandv (Hermit)
on Mar 23, 2010 at 17:38 UTC ( #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.

Comment on Re: Issues with Hashes
Select or Download Code
Replies are listed 'Best First'.
Re^2: Issues with Hashes
by jedikaiti (Friar) on Mar 23, 2010 at 18:19 UTC

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2015-10-06 23:33 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (164 votes), past polls