The AUTOLOAD subroutine does what the other posters said it will do, but by putting it in the UNIVERSAL package makes it available to every class which does not already have it own AUTOLOAD subroutine anywhere else in its @ISA tree.
The code to skip the DESTROY method is a bit odd. If one is going to mess around with a UNIVERSAL::AUTOLOAD, one can also just create a UNIVERSAL::DESTROY that doesn't do anything.
In reply to Re: wat ::DESTROY will do
by brian_d_foy
in thread wat ::DESTROY will do
by kprasanna_79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |