Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[virtualsue]: Aha. My crawler didn't deal properly with hrefs starting with ?
[Discipulus]: 1nickt maybe 'cause you ignore what happened in middleage in real monasteries... ;=)
[Corion]: virtualsue: Aaah, yes, we do use these a lot

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-12-13 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (368 votes). Check out past polls.

    Notices?