Help for this page

Select Code to Download


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