my @where = grep { $question[$_] eq $search } 0 .. $#question;
Using a hash for lookup is a not so dead simple adaptation, but still feasible. In the meantime, wfsp has shown how it can be done.
In reply to Re^3: array index
by bart
in thread array index
by monkeybus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |