Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
G'day szabgab, [I'm assuming a copy/paste typo: s/DESTROY/sub DESTROY/] My reading of perlobj - Destructors, suggests that &DESTROY is only invoked if it has been defined (for instance, there's no default &UNIVERSAL::DESTROY). In particular, the second paragraph: "If you want to do something when the object is destroyed, you can define a DESTROY method in your class. This method will always be called by Perl at the appropriate time, unless the method is empty." So, if &DESTROY isn't called, &AUTOLOAD won't come into play. -- Ken In reply to Re: DESTROY and AUTOLOAD in 5.20.1
by kcott
|
|