Help for this page

Select Code to Download


  1. or download this
    open( LINKS, "+<", "filename" );
    while (<LINKS>) {
    ...
       # when all done adding updates at the end...
       seek LINKS, $lastread, 0; # jump back for next read:
    }
    
  2. or download this
       ...
       next if exists( $fetched{$url} );
       ...
    
  3. or download this
    while (-s "list1") {
       open( INP, "<list1" ) or die $!;
    ...
    }
    
    print "list1 is empty now.  We must be done.\n";