For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > October 2006 > multidimensional arrays









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author multidimensional arrays
udesi786@gmail.com

2006-10-04, 9:57 pm

i have a reference to a bunch of array and i want to know how many
element are in each array.
if i do $#result tells me how many references i have but i want to find
out how many elements are in $result[0]. any suggestions?

usenet@DavidFilmer.com

2006-10-04, 9:57 pm

udesi786@gmail.com wrote:
> i have a reference to a bunch of array and i want to know how many
> element are in each array.
> if i do $#result tells me how many references i have but i want to find
> out how many elements are in $result[0]. any suggestions?


scalar @{$result[0]}

--
David Filmer (http://DavidFilmer.com)

udesi786@gmail.com

2006-10-04, 9:57 pm


usenet@DavidFilmer.com wrote:
> udesi786@gmail.com wrote:
>
> scalar @{$result[0]}
>
> --
> David Filmer (http://DavidFilmer.com)


thanks.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com