Thanks my man, does the trick. May I ask a few questions on your solution though... I am going to comment it on your code and maybe you can correct me where I am wrong.
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;
I Appreciate the time you took to answer my question to man.