Try adding to the top of the script the lines: print "Startdate:"; $line=<STDIN>; push(@ARGV, $line); print "Enddate:"; $line=<STDIN>; push(@ARGV, $line); Robert Sweeney ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch