If you evaluate an array in scalar context, it returns the length of the array.
(Note that this is not true of lists, which return the last value, like the C comma operator,
nor of built-in functions, which return whatever they feel like returning.)
In reply to Re^3: Get the length of a list.
by zork42
in thread Get the length of a list.
by nbtrap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |