![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^2: how many elements in array?by Limbic~Region (Chancellor) |
on Apr 18, 2005 at 12:43 UTC ( #448818=note: print w/replies, xml ) | Need Help?? |
tcf03,
$#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. Cheers - L~R
In Section
Seekers of Perl Wisdom
|
|