Help for this page

Select Code to Download


  1. or download this
    # $last ||= 1; # needs to be
    $last ||= $first;
    
  2. or download this
    my $zones = reduce {
        my( $first, $last ) = split '-', $b;
        $last ||= $first;
    ...
        $a
    } '', split ',', 
    '10-374,376-379,382-385,388-499,530-534,541-543,618,619,700-704,707-70
    +9';