Help for this page

Select Code to Download


  1. or download this
    while (1) {
          $mtime=(stat($data_file . $$))[9];
    ...
          # for a wan connection ?)
          last if (time > $mtime + 300);
      }
    
  2. or download this
    my $old_mtime = (stat($file))[9];
    if (time <= $old_mtime + 300) {
    ...
          $old_mtime = $new_mtime;
      }
    }