finfan has asked for the wisdom of the Perl Monks concerning the following question:
I understand that the following:
print "Array size is @array\n";
should tell me the number of elements in the array called @array. Yet, it doesn't, it prints the elements, in order. So, how do I determine exactly how many elements have been stored in an array?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Counting elements in array
by davido (Cardinal) on Jan 29, 2014 at 19:38 UTC | |
Re: Counting elements in array
by thezip (Vicar) on Jan 29, 2014 at 19:35 UTC | |
Re: Counting elements in array
by keszler (Priest) on Jan 29, 2014 at 19:31 UTC | |
Re: Counting elements in array
by boftx (Deacon) on Jan 29, 2014 at 19:32 UTC | |
Re: Counting elements in array
by GrandFather (Saint) on Jan 29, 2014 at 21:55 UTC | |
Re: Counting elements in array
by simmisam (Novice) on Jan 29, 2014 at 20:42 UTC | |
Re: Counting elements in array
by vinoth.ree (Monsignor) on Jan 30, 2014 at 05:05 UTC | |
Re: Counting elements in array
by Discipulus (Canon) on Jan 30, 2014 at 08:39 UTC | |
Re: Counting elements in array
by nithins (Sexton) on Jan 30, 2014 at 06:52 UTC | |
by Anonymous Monk on Aug 29, 2017 at 09:15 UTC |