|go ahead... be a heretic|
How to find number of elements of an array from array referenceby chakreey (Acolyte)
|on Apr 07, 2011 at 14:38 UTC||Need Help??|
chakreey has asked for the
wisdom of the Perl Monks concerning the following question:
I have a very basic query on finding number of elements in an array from array reference.
Assuming, I don't know number of elements in @sss, How to find number of elements form @$reee.
Command "length @$reee" returns value 1, which is right, because it is a scalar. But I want to obtain result as 3. How to get it ?
Update: got it ! Array reference (@$ree) should be considered as array.my $asdad = @$ress
in line line 5 of code will give correct result !
Thanks every one