Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: When is it safe to move a file?

by Dominus (Parson)
on Jan 14, 2001 at 22:41 UTC ( [id://51785]=note: print w/replies, xml ) Need Help??

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;
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://51785]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-03-28 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found