Of course when the resource is reclaimed is variable. But for the object to be destructed reference counting must reach 0.
Bottom line is, when you use a Perl module, destrcution is handled by Perl automatically.The problem is when you call 'unmanaged' resources, for example calling a C++ dll.
There you have to follow the API's documentation on how to release the resourcse,explictly
In reply to Re: dbh->disconnect or leave to scope
by nikosv
in thread dbh->disconnect or leave to scope
by Cagao
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |