Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re-Creating a file does not change inode modification time (Windows)

by cdarke (Prior)
on Sep 15, 2011 at 15:55 UTC ( #926181=note: print w/ replies, xml ) Need Help??


in reply to Re-Creating a file does not change inode modification time (Windows)

Are you sure the unlink is working? You might try
unlink('file') or die "Failed to unlink: $!";


Comment on Re: Re-Creating a file does not change inode modification time (Windows)
Download Code
Re^2: Re-Creating a file does not change inode modification time (Windows)
by rovf (Priest) on Sep 20, 2011 at 08:22 UTC
    Good point. Though I didn't see why unlink could have failed in this case (local file on C: drive, AFIK no other process having had a lock on it), it certainly doesn't harm checking this!


    -- 
    Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-09-18 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (105 votes), past polls