in reply to Re^2: Win32:OLE - close documents
in thread Win32:OLE - close documents
undef $doc;
like Corion said, or if $doc is a lexical and leaves it's scope.
I have had problems with Win32::OLE variables being destroyed during global destruction. The ordering seems to mess things up enough to confuse Win32::OLE.
/J
|
|---|