Brian Cassidy wrote:
> Everything seems to go fine, except at the end of execution I get a strange
> error:
>
> [Tue Feb 3 10:56:05 2004] aggregator.pl: Win32::OLE(0.1403): GetOleObject()
> Not a Win32::OLE object at D:/Perl/site/lib/Win32/OLE/Lite.pm line 154
> during global destruction.
I don't know how aggregator.pl looks like, but I guess there are
global handles ($dh, $sth). Object destruction order during global
destruction is non-deterministic. Try to use lexical scoped variables:
{
my $dbh = ...
}
Steffen