Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $dt2 = Mktime($yr, $mo, $day, $hr, $min, $sec);
    
    print $dt2 - $dt1, "\n";
    
  2. or download this
    use strict;
    use warnings;
    ...
    }
    # using pop clears out the array, which is helpful when looping
    print pop(@dates_to_compare) - pop(@dates_to_compare), "\n";