From: Adams Paul <[EMAIL PROTECTED]> > Hello to everyone, > I am trying to use Perl to open the browser and then go to different web > pages. > I have tried the following code. > #!/usr/bin/perl > use LWP::SIMPLE; > system ("start iexplore \"www.google.com\""); > foreach my $URL ('http://www.google.com', 'http://www.yahoo.com', > > 'http://www.msn.com', 'http://www.ebay.com') { > print "$url"; > } > > This opens explorer and shows google but goes no further. > Any help would be appreciated > Paul
This sounds as if you expected the LWP::Simple (Perl is CAsE seNSiTIvE) to somehow control some other program that happens to be a web browser. That's not what the module's for. The module allows your program, written in Perl, to send HTTP requests and receive and handle responses. It doesn't use the Internet Explorer for anything. If you do want to control the Internet Explorer you have to use something else. Win32::GuiTest or Win32::IE::Mechanize ( http://search.cpan.org/search?query=Win32::IE::Mechanize&mode=module ) Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/