|We don't bite newbies here... much|
Re^6: ref to read-only alias ... why? (notacrisis)by LanX (Chancellor)
|on Jan 06, 2012 at 19:55 UTC||Need Help??|
> less fragile interface to the sub
We showed that any call-by-reference can be affected.
So you are effectively saying that modifying $_[ ] is a fragile interface and bad coding practice?
I agree it's not a crisis, but this must at least be documented, not only for helping people desperately trying to understand the reason why an imported sub using another imported sub fails out of a sudden, because an alias was passed thru the chain.
> I'd rather just add an eval to the code
And how do you expect eval to help if there is no error thrown?