in reply to I've never seen this before - $#a = 4 - ??

$#a = 4; # Sets the length of the array @a to four print scalar(@a); # Prints how many elements are in the @a array.
Remeber, arrays start with 0 as the first item.

Replies are listed 'Best First'.
Re^2: I've never seen this before - $#a = 4 - ??
by Aristotle (Chancellor) on Jun 26, 2002 at 18:39 UTC
    Unless of course, someone was a bad boy and played with $[

    Makeshifts last the longest.