Kevin, You could consider using input parameters as well...
$Split1 = "@ARGV[2]"; $Split2 = "@ARGV[3]"; $WorkPath = "@ARGV[4]"; $DataPath = "@ARGV[5]"; so that when running from the command line they would be passed after the ..pl HTH, Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]