![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: How aggressively does Perl clean up when you exit()?by grinder (Bishop) |
on Nov 14, 2001 at 21:31 UTC ( [id://125373]=note: print w/replies, xml ) | Need Help?? |
You can make sure your database handles are closed down correctly by calling the disconnect method in an END block.
There is also a module on CPAN yclept1 AtExit that I have never used. For all I know, it predates the appearance of END blocks, but it may be worth a look. 1. Chatterbox silliness. yclept is very olde english, meaning "named". --g r i n d e r
In Section
Seekers of Perl Wisdom
|
|