Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

sorting dates in YYYYMMDD format

by learner@perl (Novice)
on Jul 04, 2013 at 06:57 UTC ( #1042344=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    @dates = ('20130401', '20130501', '20130601');
    ...
    $c <=> $d;
    }
    print "@ordered\n";
    
  2. or download this
    20130501 20130401 20130601
    
  3. or download this
    20130501 20130401 20130601
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1042344]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (18)
As of 2015-07-28 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls