Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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?
[Discipulus]: morning both!
[Corion]: Hi Discipulus!
[Corion]: My pictures from the vacation are now online ;)
[Discipulus]: welcome back Aristotle!

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-02-27 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (378 votes). Check out past polls.