On Tue, 2008-09-16 at 23:52 -0700, Adams Paul wrote: > Hello everyone, > I am still trying to change to different web pages in a browser.I have tried > the following code: > > #!/usr/bin/perluse warnings;use strict;use LWP::Simple;system ("start > iexplore \"my$url\"");sub main (for my$URL > ('http://www.google.com','http://www.yahoo.com','http://www.msn.com','http://www.ebay.com')){print > "$url"; } > This code opens internet explorer and displays web page cannnot be found. > > #!/usr/bin/perluse warnings; > use LWP::SIMPLE;@url= > ("http://www.ebay.com","http://www.dummies.com","http://www.google.com","http://www.yahoo.com","http://www.msn.com");foreach > $url (@url) { > system ("start iexplore \"$url\""); > } > > This code is a little better as it opens up 5 different internet explorers > with the correct web page displayed.I am not sure how to change > the web page while using the one internet explorer.I have tried several > different permutations.I have LWP installed with my version of Perl > which was obtained with ActiveState.Does this mean that I also have the > LWP::Simple installed?Any help would be appreciated. > Thanks > Paul >
Some browsers allow a list of URLs. Firefox will open a list in tabs. my $urls_list = join( '" "', @url ) ; system( "start iexplore \"$urls_list\"" ); -- Just my 0.00000002 million dollars worth, Shawn "Where there's duct tape, there's hope." Cross Time Cafe "Perl is the duct tape of the Internet." Hassan Schroeder, Sun's first webmaster -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/