in reply to How to find number of elements of an array from array reference
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to find number of elements of an array from array reference
by chromatic (Archbishop) on Apr 07, 2011 at 17:30 UTC | |
by jpl (Monk) on Apr 07, 2011 at 18:02 UTC | |
by chromatic (Archbishop) on Apr 07, 2011 at 21:41 UTC |