in reply to Parsing MSWord File

On a general note, keep the task manager open and look for MS Word processes not being terminated properly if your script is Ctr-C:ed, or exit()-ed without the Win32::OLE object being destroyed.

That may also be the reason if you have problems opening/saving Word documents for no reason -- there is another process still alive with the document open.

/J

Replies are listed 'Best First'.
Re^2: Parsing MSWord File
by pankaj_it09 (Scribe) on Oct 03, 2008 at 07:13 UTC
    I did like this but no effect :-

    my $document = Win32::OLE -> GetObject($doc,sub {$_[0]->Quit;});