sub grepix (&@) { my $test = shift; grep { local $_ = $_[$_]; &$test(); } (0..$#_) } my @index = grepix { /foo/ } qw(foofoo bar fo);
In reply to Re: finding index number in an array
by salva
in thread finding index number in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |