Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    
    print "Using <=>:\n", join("\n", sort {$b <=> $a} @dirs), "\n\n";
    print "Using cmp:\n", join("\n", sort {$b cmp $a} @dirs), "\n";
    
  2. or download this
    Using <=>:
    11-09-2004
    ...
    11-09-2004
    11-08-2004
    11-07-2004