Help for this page

Select Code to Download


  1. or download this
    $elements_in_array = scalar(@array);
    $last_element_index = $#array;
    ...
    # as first index in array is 0
    # this is always true
    if (scalar(@array) == $#array + 1) {};