Good suggestion! Or even just:
use strict; use warnings; (-e) ? doTheWork($_) : warn qq{"$_" doesn't exist!} for @ARGV;
In reply to Re^3: how to deal with incorrect command line argument
by Kenosis
in thread how to deal with incorrect command line argument
by scripter87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |