in reply to The behavior of Win32::OLE->new
Instead of Win32::OLE->new(), what you want to use is CreateObject, like so:
my $ie = Win32::OLE->CreateObject('InternetExplorer.Application', 'Qui +t') or die "Can't start IE", Win32::OLE::LastError();
$ie in each script will reference its own instance of IE.
Update: According to Win32::OLE docs, new and CreateObject are equivalent. You should be getting a new instance of ie with each run.
|Replies are listed 'Best First'.|
Re: Re: The behavior of Win32::OLE->new
by marynella (Novice) on Nov 20, 2003 at 12:21 UTC
by jsprat (Curate) on Nov 24, 2003 at 01:40 UTC