#!/usr/local/bin/perl -w use strict; use Getopt::Std; getopts('c:d:e:h:'); our ($opt_c, $opt_d, $opt_e, $opt_h); # check our switch values if ($opt_h) { &help; } if ($opt_c) { my $client = $opt_c; } #else { &help; } print "d = $opt_d\ne = $opt_e\n"; &help unless ( ($opt_d, $opt_e) =~ m/(\d{2})\/(\d{2})\/(\d{4})(.*?)$/ ); sub help { print < -d [time] -e [time] Date must be in the format "DD/MM/YYYY", i.e., 09/04/2002. Time is optional. If it was included in the email you received from security, then enter it. Time must be entered as "HH:MM:SS". example: $0 -c eman -d 09/01/2002 04:00:00 -e 09/04/2002 23:59:59 HELP exit 1; } #### Useless use of a variable in void context at ./tape-pull.pl line 18. Use of uninitialized value in concatenation (.) or string at ./tape-pull.pl line 16. d = 09/01/2002 e = Use of uninitialized value in pattern match (m//) at ./tape-pull.pl line 18. usage: ./tape-pull.pl -c -d [time] -e [time] Date must be in the format "DD/MM/YYYY", i.e., 09/04/2002. Time is optional. If it was included in the email you received from security, then enter it. Time must be entered as "HH:MM:SS". example: ./tape-pull.pl -c eman -d 09/01/2002 04:00:00 -e 09/04/2002 23:59:59