Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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: (15)
As of 2015-07-02 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls