Help for this page

Select Code to Download


  1. or download this
    use constant N => 3;
    my $counter;
    
    ...
        last ELEMENT if $counter++ > N;
        print "Looking at $val\n";
    }
    
  2. or download this
    Looking at A
    Looking at B
    Looking at C