Help for this page

Select Code to Download


  1. or download this
    for (my $x = 0; $x < $#arr; $x++) {}
    #                  ^^^^^^^
    
  2. or download this
    for (my $x = 0; $x <= $#arr; $x++) {}
    #                  ^^
    ...
    #                    ^
    # when used in scalar context, '@arr' returns the number of
    # elements in @arr