Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Sort on Number Embedded in String

by Tanktalus (Canon)
on Mar 22, 2005 at 19:14 UTC ( [id://441576]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (sort {
      (my $l = $a) =~ /fwlog\.(\d+)/;
    ...
    } @files) {
      print "$_\n";
    }
    
  2. or download this
    for (map {
      $_->[1]
    ...
    } @files) {
      print "$_\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-20 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found