Replace your grep line with this:
--my @matches = grep { $names[$i] =~ /$pattern/ } 0 .. $#names;
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: don't get bit by split.
by davorg
in thread @arrys & Non exact searches.
by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |