Next Program Repair Shop 190

Typical uses of $#array

        for ($i=0; $i <= $#array; $i++) {
          # do something with $array[$i]
        }
        for my $element (@array) {      
          # do something with $element
        }
        for my $i (0 .. $#array) {      
          # do something with $i
        }


Next Copyright © 2002 M. J. Dominus