[Israel.pm] bless and AUTOLOAD

Shmuel Fomberg semuelf at 012.net.il
Wed Sep 26 05:16:37 PDT 2007

Hello There.

> Yuval Kogman Wrote:

>> And no worries.
>What if some class implements an AUTOLOAD that is specifically
>interested in catching DESTROY?

That depends: if you are talking about a class that he wrote, then he can
fix it. 
But if you are talking about CPAN module, then the module simply should not
do that. No, really. Because you are thinking about DESTROY, but what about
CLONE? CLONE_SKIP? FETCH? Some new internal name FFDSGRE_DO for some new
Using AUTOLOAD in CPAN module is very dangerous, because the author can
never know the surrounding conditions. But silently ignore all the capital
letter functions and physically implement the ones that it needs is the
basic requirement.


More information about the Perl mailing list