"They return different values when called in a scalar context." ?
You could make versions that return the first element or a reference to an array or that die when called in a scalar context. But they all return he same list in a list context.
Trying to come up with some shorthand that describes both what they return in a list context and what they return in a scalar context without ever mentioning "context" is just a mistake in my book.
- tye (but my friends call me "Tye")In reply to (tye)Re2: Sub cannot return an array?
by tye
in thread Dereference an array reference
by fmogavero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |