in reply to wat ::DESTROY will do
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: wat ::DESTROY will do
by polettix (Vicar) on May 23, 2005 at 08:29 UTC | |
by brian_d_foy (Abbot) on May 23, 2005 at 10:59 UTC | |
by Tanktalus (Canon) on May 23, 2005 at 14:50 UTC | |
by brian_d_foy (Abbot) on May 23, 2005 at 18:33 UTC |