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?
Tanktalus has to figure out why his cb talker isn't working :(
[choroba]: https?
[choroba]: That was at least why my cb talker wasn't working.
[Tanktalus]: curious, then, why the reader works :)
[Tanktalus]: or posting the last hour of cb... well, maybe I should double check that first :)
[Tanktalus]: yup, it's working. :)
[choroba]: https://github. com/choroba/pm-cb/ commit/7b57f513596 7bf8a29d74f1c307de 9a76894cdcf

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2018-07-15 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (326 votes). Check out past polls.

    Notices?