in reply to Win32::OLE problem with Destructing

Rewriting due to connectivity problems

There are two things you might want to try..

1) Close the doc first.. $Doc->Close(); 2)Use the quit method when trying to close Word. $_[0]->Quit();

And as far as the Win32::OLE docs, they are pretty good. What you're probably after is more information on the Word Object Model.

Hope this helps
Rich

Replies are listed 'Best First'.
Re: Re: Win32::OLE problem with Destructing
by John M. Dlugosz (Monsignor) on Jul 21, 2001 at 00:49 UTC
    why would calling $Doc->Close() "first" (first compared to what?) work better than letting the "destruct" do that?

    I'm not explicitly creating a Word application. I would have supposed that if it was created, it will be destroyed when the last ref goes out of scope; if it found an existing one, it shares counts with that. I don't want to just call Quit blindly!

    —John