#!/usr/local/bin/perl # # $Id: compare_dates.pl.in 5026 2010-10-20 07:00:35Z james_johnson $ # $Log$ # Revision 1.1 2005/07/28 23:52:45 nadya # Initial revision # # # AUTHOR: Timothy L. Bailey # CREATE DATE: $PGM = $0; # name of program $PGM =~ s#.*/##; # remove part up to last slash @args = @ARGV; # arguments to program $| = 1; # flush after all prints $SIG{'INT'} = 'cleanup'; # interrupt handler # Note: so that interrupts work, always use for system calls: # if ($status = system($command)) {&cleanup($status)} # requires push(@INC, split(":", $ENV{'PATH'})); # look in entire path # defaults %months = (Jan, "00", Feb, "01", Mar, "02", Apr, "03", May, "04", Jun, "05", Jul, "06", Aug, "07", Sep, "08", Oct, "09", Nov, 10, Dec, 11); $usage = < Jan..Dec day 1..31