http://qs321.pair.com?node_id=978853

Henry07 has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
I m using Perl module WIN32::OLE to read and write Excel. It works fine except when I have an error in my Perl code, so the programm does not end but hangs. When I stop the Browser where my Perl programm runs, the OLE instance of Excel is probably not closed. Only turning of the PC and starting again closes this instance (so far I can see).

What other way is there to close my workbook ($Book->Close;) in case of an error in my Perl prog ?

Thanks for any help

Henry