Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $i3 = first { $array[$_] == 3 } (0..$#array);
    
    print "<$i1> <$i2> <$i3>\n";
    
  2. or download this
    Use of uninitialized value $i3 in concatenation (.) or string at d:/tm
    +p/first.pl line 13.
    <0> <1> <>