in reply to Skipping files in a directory
foreach my $dir (@DIRS) { warn "Directory $dir not found!\n" and next unless -d $dir; # # work with existing directory here # }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Skipping files in a directory
by svenXY (Deacon) on Dec 11, 2008 at 10:55 UTC | |
by moritz (Cardinal) on Dec 11, 2008 at 11:58 UTC | |
by anand_perl (Novice) on Dec 11, 2008 at 11:53 UTC |