Help for this page

Select Code to Download


  1. or download this
    --- External.pm.bak    2008-07-11 22:30:52.000000000 -0700
    +++ External.pm    2008-07-11 22:52:14.000000000 -0700
    ...
                     return $winner eq $cutoff ? 1 : -1;
                 };
             }
    
  2. or download this
         # ....
         return -1 if $hours1 < $hours2;
    ...
         return 1 if $hours1 == $hours2 && $minutes1 > $minutes2;
         return -1 if $hours1 == $hours2 && $minutes1 == $minutes2 && $sec
    +onds1 < $seconds2;
         return 1 if $hours1 == $hours2 && $minutes1 == $minutes2 && $seco
    +nds1 > $seconds2;
    
  3. or download this
         # ...
         return -1 if $hours1 < $hours2;
    ...
         return 1 if $minutes1 > $minutes2;
         return -1 if $seconds1 < $seconds2;
         return 1 if $seconds1 > $seconds2;
    
  4. or download this
         return $hours1 <=> $hours2
             || $minutes1 <=> $minutes2
             || $seconds1 <=> $seconds2
             || $Sort::External::a cmp $Sort::External::b;
    
  5. or download this
    my $sortscheme = sub ($$) {
        my @fieldsa = split(" ", shift);
        my @fieldsb = split(" ", shift);
        # ...
    };