dokkeldepper has asked for the wisdom of the Perl Monks concerning the following question:
Recently I wandered the holy hills of OO with perl (ActivePerl 5.8.8 on Win32) Then a voice hit me:
(in cleanup) No such method: Tester::DESTROY at D:\Ebooks\Perl\tester. +pl line 0
and I wondered what DESTROY should do?
What is the exact purpose of DESTROY? When it should used and when it is useless? And stated in general: Are there guiding principles for the use of DESTROY?
Thanks
upd: of course tester.pl uses Tester.pm
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What _should_ DESTROY do?
by jettero (Monsignor) on May 11, 2007 at 13:00 UTC | |
|
Re: What _should_ DESTROY do?
by dk (Chaplain) on May 11, 2007 at 12:49 UTC | |
|
Re: What _should_ DESTROY do?
by leocharre (Priest) on May 11, 2007 at 13:18 UTC | |
|
Re: What _should_ DESTROY do?
by Joost (Canon) on May 11, 2007 at 23:20 UTC | |
|
Re: What _should_ DESTROY do?
by Anonymous Monk on May 11, 2007 at 13:28 UTC |