Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | 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. This can't be avoided, even less if people use Data::Alias or Lexical::Alias. UPDATE: > I'd rather just add an eval to the code And how do you expect eval to help if there is no error thrown?
Cheers Rolf In reply to Re^6: ref to read-only alias ... why? (notacrisis)
by LanX
|
|