What does a "list slice" return in a scalar context? It isn't actually documented (though some make outrageous claims that it is).
But it isn't the number of items in the slice. If you want a count returned in the case of scalar context, then use wantarray to code for that.
- tye (but my friends call me "Tye")In reply to (tye)Re: List context or not?
by tye
in thread List context or not?
by sguazt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |