Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Sort on Number Embedded in String

by Tanktalus (Canon)
on Mar 22, 2005 at 19:14 UTC ( #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
Node Status?
node history
Node Type: note [id://441576]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-04-23 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?