Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: (Golf) Dependency List Prioritization

by AidanLee (Chaplain)
on Mar 14, 2002 at 18:32 UTC ( [id://151777]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub f{my%h=@_;for(values %h){for(@$_){$h{$_}=[]if!$h{$_}}}
    print join(', ',sort{(grep /^$b$/,@{$h{$a}})?1:-1}keys%h)}
    
  2. or download this
    sub f{%h=@_;for(values %h){for(@$_){$h{$_}=[]if!$h{$_}}}
    sort{(grep /^$b$/,@{$h{$a}})?1:-1}keys%h}
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found