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

(tye)Re2: Sorting by_number

by tye (Sage)
on Sep 15, 2001 at 22:24 UTC ( [id://112643]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @sorted= grep { s#0.{4}(\d+)#$1#gs; 1 } sort
        grep { s#(\d+)#"0".pack("N",length$1).$1#ge; 1 } @{[ @list ]};
    
  2. or download this
    my @sorted= grep { s#0.{4}(\d+),(0*)!#$2$1#gs; 1 } sort
        grep { s#(0*)(\d+)#"0".pack("N",length$2)."$2,$1!"#ge; 1 }
        @{[ @list ]};
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found