No such thing as a small change | |
PerlMonks |
Re^2: Accessing Arguments inside Subroutines via @_by LanX (Saint) |
on Mar 20, 2015 at 03:07 UTC ( [id://1120690]=note: print w/replies, xml ) | Need Help?? |
> I would be interested to know what motivated the design decision behind it. I think it follows the normal inner mechanism. The elements are aliases not the array holding them. Think about how shift @_ deletes an alias. One might argue that the array should not be writable, but its sometimes necessary to rewrite @_ before doing a goto &sub .
In Section
Seekers of Perl Wisdom
|
|