Help for this page

Select Code to Download


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