Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

RE: RE: Re: Sorting on Section Numbers

by tye (Sage)
on Jul 28, 2000 at 17:15 UTC ( [id://24841]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    substr("0000$1",-4)
    sprintf"%04.4d",$1
    substr("0"x$maxdigs.$1,-$maxdigs)
    sprintf"%0$maxdigs.$maxdigs"."d",$1
    
  2. or download this
    grep{s/(^|\D)0+(\d)/$1$2/g,1} sort
    grep{s/(\d+)/sprintf"%06.6d",$1/ge,1} @sects;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found