in reply to Re: How to find number of elements of an array from array reference
in thread How to find number of elements of an array from array reference
... or, you can use scalar...
Why? Scalar assignment always imposes scalar context.
... you can use int like...
Why? Scalar assignment always imposes scalar context, and an array in scalar context always evaluates to an integer.
Make it easy on yourself!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to find number of elements of an array from array reference
by jpl (Monk) on Apr 07, 2011 at 18:02 UTC | |
by chromatic (Archbishop) on Apr 07, 2011 at 21:41 UTC |