use strict; use warnings; use LWP::Simple; my @list; my $source; my $i; my $file="C:/Documents and Settings/Dad/Desktop/url checker.txt"; open FILE, "<$file"; while(){ push @list, $_; } close FILE; my $length=length(@list); for($i=0; $i<=$length; $i++){ my $j=$i+1; $source=get($list[$i]); open LOG, ">C:/Documents and Settings/Dad/Desktop/Websites/Website Source[$j].txt"; print LOG $source; close LOG; } #### use strict; use warnings; use LWP::Simple; my @list; my $source; my $i; my $file="C:/Documents and Settings/Dad/Desktop/url checker.txt"; open FILE, "<$file" || die "Can't open the list of urls! \n"; while(){ push @list, $_; } close FILE; my $length=length(@list); for($i=0; $i<=$length; $i++){ my $j=$i+1; $source=get($list[$i]); open LOG, ">C:/Documents and Settings/Dad/Desktop/Websites/Website Source $j.txt" || die "Can't open website sources.txt: $!\n"; print LOG $source; close LOG; }