because the array has already been "prepared" for later modification without taking care about any rvalue context !
What? We're talking about a Perl that's fixed to not add the magic for rvalue $#a.
You said it would be easy to forget foo($#a) is an lvalue and that it's a common occurrence.
I replied that it's no biggie if it's true. That case can be handled if there is a need.
In reply to Re^11: Does @{ } copy arrays?
by ikegami
in thread Does @{ } copy arrays?
by tford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |