in reply to Re: Multi @array searches
in thread Multi @array searches
my @matches = grep { $names[$_] =~ /$pattern/ || $desc[$_] =~/$pattern/ } 0 .. $#names;
Shouldnt it read:
my @matches = grep { $names[$_] =~ /$pattern/ || $desc[$_] =~/$pattern/ } 0 .. $#desc;
If not, why not?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Multi @array searches
by arturo (Vicar) on Mar 24, 2001 at 03:25 UTC |