Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
opendir(DIR, $dir) or die "can't opendir $dir: $!"; @files = readdir( DIR ) or die "Couldn't read from $dir : $!\n"; @files = grep @files, { /\errors.txt$/ && -f $_ }; print "*****A found your file here!******<br>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A file in a directory
by davidrw (Prior) on Apr 24, 2006 at 18:15 UTC | |
by Anonymous Monk on Apr 24, 2006 at 19:26 UTC | |
|
Re: A file in a directory
by bart (Canon) on Apr 24, 2006 at 18:57 UTC |