... 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!
In reply to Re^2: How to find number of elements of an array from array reference
by chromatic
in thread How to find number of elements of an array from array reference
by chakreey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |