marynella has asked for the wisdom of the Perl Monks concerning the following question:
I have an existing problem with Perl/OLE, that I'd like you to take a look at.
In my script there is a call to:
It appears that the behavior of Win32::OLE->new is as follows:Win32::OLE->new( 'InternetExplorer.Application', sub {$_[0]->Quit;} )
- If there is an existing instance of InternetExplorer(IE) running, then it will return a handle to the existing IE application.
- If there is not an existing instance of IE running, then it will create a new instance of IE, and return a handle to this new instance.
Note: I am currently using Win32::Mutex to avoid the concurrency/race condition problems. However, this is not the best solution.
Thanks!
update (broquaint): tidied up formatting
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: The behavior of Win32::OLE->new
by l3nz (Friar) on Nov 19, 2003 at 17:31 UTC | |
by marynella (Novice) on Nov 20, 2003 at 15:37 UTC | |
Re: The behavior of Win32::OLE->new
by jsprat (Curate) on Nov 19, 2003 at 18:10 UTC | |
by marynella (Novice) on Nov 20, 2003 at 12:21 UTC | |
by jsprat (Curate) on Nov 20, 2003 at 16:47 UTC | |
by marynella (Novice) on Nov 21, 2003 at 10:11 UTC | |
by jsprat (Curate) on Nov 24, 2003 at 01:40 UTC | |
by meredith (Friar) on Nov 20, 2003 at 13:57 UTC |
Back to
Seekers of Perl Wisdom