Help for this page

Select Code to Download


  1. or download this
    @data = map  { $_->[0] }
            sort {   $a->[3] <=> $b->[3]  # YY
    ...
                   ||$a->[2] <=> $b->[2]} # DD
            map  { [ m!^\s*(\D*(\d+)/(\d+)/(\d+)(?: [\d.]+)*)\s*$! ] }
            @idata;  #     0    1MM   2DD   3YY
    
  2. or download this
    
    @data = sort { $a->[1] cmp $b->[1] }      # Sort by YYYY/MM/DD
    ...
                   # 2 digit dates is madness
                   \@p} # return the fixed array
            @idata;
    
  3. or download this
    @data = map  {substr($_,3)}
            sort #lexicographical representation of the date
            map  { m!^\s*(\D*(\d+)/(\d+)/(\d+)(?: [\d.]+)*)\s*$!
                   && pack ("CCCA*",$4,$2,$3,$1)}
            @idata;