in reply to Is there a way around grep?
if (grep {$_ eq $filename} @index_file_names) {
is basically the same as
my $found; for (@index_file_names) { ++$found if $_ eq $filename; } if ($found) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a way around grep?
by suaveant (Parson) on Oct 11, 2011 at 15:53 UTC | |
by AnomalousMonk (Archbishop) on Oct 11, 2011 at 22:42 UTC | |
by ikegami (Patriarch) on Oct 15, 2011 at 08:26 UTC |