Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: sorting dates in YYYYMMDD format

by Dallaylaen (Scribe)
on Jul 04, 2013 at 12:30 UTC ( #1042448=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    -bash$ xsel -o | perl -w  
    Name "main::d" used only once: possible typo at - line 9.
    Use of uninitialized value $d in numeric comparison (<=>) at - line 9.
    Use of uninitialized value $d in numeric comparison (<=>) at - line 9.
    20130601 20130501 20130401
    
  2. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
        my $d = $3 . $2 . $1;
        $c <=> $d;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (16)
As of 2014-07-25 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (172 votes), past polls