in reply to Re^2: ARGV behaviour in getopts std
in thread ARGV behaviour in getopts std

'scalar @array' is the number of elements in @array (sometimes also referred to as the length of @array).

$#array is the last index of @array. By default the first index in an array is 0, so when using the default settings $#array will be 'scalar @array - 1'.

Elda Taluta; Sarks Sark; Ark Arks