in reply to Re: how to deal with incorrect command line argument
in thread how to deal with incorrect command line argument
I Appreciate the time you took to answer my question to man.my @array; # this an array to store the good arguments for (@ARGV) { # for the argumets array if (-e) { # if the file exists push @array, $_;# push the file that exists onto the @array # why use $_ here? next; # what purpose has this } warn qq{"$_" doesn't exist!}; } @ARGV = @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to deal with incorrect command line argument
by Kenosis (Priest) on Oct 30, 2013 at 22:37 UTC |