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

Re: sorting a hash by keys, according to preference

by crashtest (Curate)
on Apr 13, 2005 at 04:54 UTC ( #447265=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub by_pref {
        ($b eq 'start') <=> ($a eq 'start')
    ...
            or
        ($b eq 'step') <=> ($a eq 'step')
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2020-12-03 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (56 votes). Check out past polls.

    Notices?