Posted on 2009-01-29 23:22:10-08 by apple
getting the error when using
Hi, i just downloaded "Win32-IEAutomation" package under c:\Perl\lib and c:\perl\lib\cpan. I have a small program :
use Win32::IEAutomation; # Creating new instance of Internet Explorer my $ie = Win32::IEAutomation->new( visible => 1, maximize => 1); # Site navigation $ie->gotoURL('http://www.google.com');
I get the error message "Can't locate Win32/IEAutomation.pm in @INC (@INC contains: C:/Per ite/lib .)". Please let me know what I'm missing. Do i install the package in the right folder? If I run the another program
use Win32::OLE ; use strict; my $url = "http://www.yahoo.com"; my $ie = Win32::OLE->new("InternetExplorer.Application") || die "Could not start Internet Explorer.Application\n"; $ie-> Navigate("$url");
It runs as expected. Thanks Apple
Direct Responses: 9838 | Write a response
Posted on 2009-01-30 11:46:36-08 by zaxxon in response to 9832
Re: getting the error when using
Hi, I do believe that you were close, but not fully correct. Also, "Win32::OLE" is a prerequisite for Win32::IEAutomation, which is like a wrapper for Win32::OLE. From the Makefile.pl, I would guess that the file IEAutomation.pm should go under the folder lib/Win32/. And it would need to be "registered". Personally, I think you should just follow the package's README file instructions, and used the Makefile/make (nmake on Windows) setup, which will take care of everything for you. I do hope this helps.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.