this will get just the indexes:my @matches = grep { /$pattern/ } @names;
my @matches = grep { $names[$_] =~ /$pattern/ } 0..$#names;
In reply to Re: Re: don't get bit by split.
by runrig
in thread @arrys & Non exact searches.
by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |