Or, if you want to get rid of those args from @ARGV, you could use shift:my $infileold = $ARGV[0] || $fileold; my $infilenew = $ARGV[1] || $filenew;
my $infileold = shift || $fileold; my $infilenew = shift || $filenew;
In reply to Re: Defaults for command line args
by btrott
in thread Defaults for command line args
by ChuckularOne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |