Help for this page
use strict; my @array=(1,2); ... my $i3 = grep { $array[$_] == 3 } (0..$#array); print "<$i1> <$i2> <i3>\n";