Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Sorting dates with the Schwartzian Transform

by Anonymous Monk
on Aug 15, 2011 at 14:19 UTC ( #920305=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @sorted =
       map substr($_, 8),
       sort
       map join('', (/(..)-(..)-(....)/)[2,1,0], $_),
       @dates;  # DD-MM-YYYY
    
  2. or download this
    #!/usr/bin/perl --
    use strict;
    ...
    }
    
    __END__
    
  3. or download this
    dates $VAR1 = [
              '08-15-2011',
    ...
            ];
    
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://920305]
help
Chatterbox?
[stevieb]: Hey ww. Just laying down watching a hockey game, running my auto build distribution that automates Strawberry installs to figure out which ones had csum changes so berrybrew doesn't barf on those ones
[stevieb]: ...and closing some issues on some of my other dists

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-03-30 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.