if ($options{t}) { if ($job && $queue && $date && $time) { print "At $time on $when, this will run $job in queue $queue. \n"; } elsif ($job && $queue && $date) { print "Please enter a time for the job to run. \n"; # Shouldn't we be exiting at this point? } elsif ($job && $queue) { print "This will run $job in queue $queue immediately with the -n flag \n"; } elsif ($job eq "install") { print "OK\n"; } else { print "Please specify a Job Name and Queue \n"; # Shouldn't we be exiting at this point? } }