Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: Benchmark, -s versus schwartzian

by ambrus (Abbot)
on Aug 23, 2004 at 19:20 UTC ( [id://385188]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @files = glob("/bin/*");
    @sorted = 
    ...
            map { sprintf "%012d %d", -s $files[$_], $_ } 
            0..@files-1];
    print "@sorted$/";
    
  2. or download this
    my @h = map -s, @files;
    @results = @files[sort {$h[$a]<=>$h[$b]} 0..@h-1];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-19 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found