- or download this
foreach(@sites){
$site=$_;
# call the sub
&getpages($site);
}
- or download this
foreach my $site ( @sites) {
&getpages($site);
}
- or download this
sub getpages{
# start timer
...
print "Site $site took $elapsed seconds to load\n";
}
} # sub getpages
- or download this
if ( $debug > 10 ) {
print STDERR "Site $site took $elapased seconds to load\n";
}
- or download this
$data[$[] = scalar localtime;
foreach my $site (@sites){
...
}
print OUTFILE "\n";
close OUTFILE;