- or download this
my ($rpt_name, $desname, $btch, $record) = @ARGV[0..3];
- or download this
# following the above
my @args= ("path/to/prog", "report=$rpt_name" , ...);
- or download this
#get rid of $retval, too, unless you need it
system(@args) and die "System failed: $?\n";