Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: sorting a hash by keys, according to preference

by crashtest (Curate)
on Apr 13, 2005 at 04:54 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://447265]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found