Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: How to find number of elements of an array from array referenceby Nikhil Jain (Monk) |
on Apr 07, 2011 at 16:16 UTC ( [id://898106]=note: print w/replies, xml ) | Need Help?? |
Finding number of elements in an array from array reference, you can get it by different ways like, 1. As moritz said, use the array in scalar context like my $asdad = @$reee; #outpur 32. or, you can use scalar like, my $asdad = scalar(@$reee); #outpur 33. or, you can use int like my $asdad = int(@$reee); #outpur 3
In Section
Seekers of Perl Wisdom
|
|