map and grep return lists so, obviously, in a scalar context they also return the last item (according to you). Except they don't, of course.Of course they don't. That's why I wrote "map in scalar context returns what you're after: the length of the list. See map."
I really don't see what point you're trying to make tye :-(
In reply to Re^3: Scalar context of slice (myth)
by FunkyMonk
in thread Scalar context of slice
by thenaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |