Hey i have wrote a perl program and it works when i run it, but i want to add a for loop to run it a load of times. Ive tried putting the for loop in a few different places but keep getting errors.
Here is the code:
--------------------------------------------------------------
#!c:/perl/bin/perl
#
use strict;
use WWW::Mechanize;
my $url = "http://www.google.com" ;
my $mech = WWW::Mechanize->new();
$mech->get( $url );
print $mech->content;
---------------------------------------------------------------
Does any1 know were i would add the for loop to.
Thanx
Here is the code:
--------------------------------------------------------------
#!c:/perl/bin/perl
#
use strict;
use WWW::Mechanize;
my $url = "http://www.google.com" ;
my $mech = WWW::Mechanize->new();
$mech->get( $url );
print $mech->content;
---------------------------------------------------------------
Does any1 know were i would add the for loop to.
Thanx
Comment