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.)
There is also a section on slices in perldata, but where does it say that a slice is a list?
In reply to Re^2: So what is an array slice anyway?
by beable
in thread So what is an array slice anyway?
by beable
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |