Re^2: how many elements in array?
Apr 18, 2005 at 12:43 UTC
in reply to
Re: how many elements in array?
how many elements in array?
$#one and scalar @one do not produce the same thing. Using scalar @one gives the number of elements, which is what was asked for, while $#one gives is the index of the last element.
Seekers of Perl Wisdom