That is why you shouldn't use the Indirect notation.And not because of the reasons pointed out since way back by Perl illuminators like Tom Christiansen and Mark-Jason Dominus, some of those having found its way into the documentation?
Your AUTOLOAD example is just a special case of the more fundamental problems mentioned in perldoc perlobj - the manual page that recommends:
The "->" notation suffers from neither of these disturbing ambiguities, so we recommend you use it exclusively.Emphasis not mine.
In reply to Re: Why you shouldn't use the Indirect notation with AUTOLOAD
by Anonymous Monk
in thread Why you shouldn't use the Indirect notation with AUTOLOAD
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |