No such thing as a small change | |
PerlMonks |
Re: Re (tilly) 1: $obj-DESTROY isn't called uponby Sinister (Friar) |
on Jan 31, 2002 at 13:32 UTC ( [id://142413]=note: print w/replies, xml ) | Need Help?? |
Hi tilly!
Thnx for the post, but it is not running under mod_perl - I have actualy found the cause of the problem, after an intensive search through the cookbook. I found that when a perl script is instantiated using exec (or similar) DESTROY will never be called upon when the program exits. Therefor I now advise in the POD to do a undef $obj; before the script exits. This seems to be the only way to have it run the DESTROY routine... Thanks for your quite usefull post anyway (I can very much use this for another project)... Sinister greetings. "With tying hashes you can do everything God and Larry have forbidden" -- Johan Vromans - YAPC::Europe 2001 perldoc -q $_
In Section
Seekers of Perl Wisdom
|
|