in reply to Win32::OLE Excel: Close and Quit no matter what happens
Searching the Win32::OLE documentation for ->Quit shows the following example:
$ex = Win32::OLE->new('Excel.Application', sub {$_[0]->Qui +t;}) or die "Oops, cannot start Excel";
It seems to me that the optional destructor argument (as documented in Win32::OLE) will do what you want.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::OLE Excel: Close and Quit no matter what happens
by thmsdrew (Scribe) on Aug 06, 2014 at 15:12 UTC |