in reply to Re: how many elements in array?
in thread how many elements in array?
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.
$#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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: how many elements in array?
by RazorbladeBidet (Friar) on Apr 18, 2005 at 12:59 UTC | |
by Limbic~Region (Chancellor) on Apr 18, 2005 at 13:19 UTC | |
Re^3: how many elements in array?
by bradcathey (Prior) on Apr 18, 2005 at 13:02 UTC | |
by Limbic~Region (Chancellor) on Apr 18, 2005 at 13:11 UTC |
In Section
Seekers of Perl Wisdom