PerlScholar has asked for the wisdom of the Perl Monks concerning the following question:
my @files2 = map { lc } grep { -f "$dir2/$_" } grep { $_ ne "file1" } grep { $_ ne "file2" }readdir(DIR2);
print "@files2\n";
prints: file2 file3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grep Array Multiple times
by toolic (Bishop) on Sep 23, 2010 at 16:33 UTC | |
by PerlScholar (Acolyte) on Sep 23, 2010 at 17:39 UTC | |
by Marshall (Canon) on Sep 26, 2010 at 10:19 UTC |