You can also use the warn to print the warnings
my @DIRS=qw(there notthere there); foreach (@DIRS) { if (-d $_) { # Do the task. } else { warn "File not found\n"; } }
In reply to Re: Skipping files in a directory
by lakshmananindia
in thread Skipping files in a directory
by anand_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |