Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

RE: RE: Re: Sorting on Section Numbers

by tye (Cardinal)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-12-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (75 votes), past polls