You said:
A slice returns a list and assigning a list to a scalar will just assign the last item in the list to the scalar.
And map and grep each return lists. So your above proclamation would imply that map and grep "will just assign the last item in the list to the scalar". So do you think that map doesn't return a list? Or do you retract your first sentence?
- tye
In reply to Re^4: Scalar context of slice (myth)
by tye
in thread Scalar context of slice
by thenaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |