Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Sort on Number Embedded in String

by Dru (Hermit)
on Mar 22, 2005 at 19:04 UTC ( [id://441568]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    fwlog.14Mar2005.gz
    fwlog.15Mar2005.gz
    ...
    fwlog.7Mar2005.gz
    fwlog.8Mar2005.gz
    fwlog.9Mar2005.gz
    
  2. or download this
    for (@files){
      $_ =~ /fwlogsum\.(\d+)\w+/;
    ...
    for (sort{$a <=> $b} @days){
      print "fwlog" . $_ . ".Mar2005\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://441568]
Approved by RazorbladeBidet
Front-paged by friedo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-23 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found