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

RE: RE: Re: Sorting on Section Numbers

by tye (Sage)
on Jul 28, 2000 at 17:15 UTC ( #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
Node Status?
node history
Node Type: note [id://24841]
help
Chatterbox?
and a moth chases the moon...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2017-04-25 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (447 votes). Check out past polls.