Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Test for writable filehandles on win32

by tachyon-II (Chaplain)
on Jun 09, 2008 at 20:25 UTC ( [id://691090]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Test for writable filehandles on win32
in thread Test for writable filehandles on win32

Yes it will change the modification time but I don't think that really matters, given the logical reason for checking if you can write to a file (in the context of a DBM module) would seem to be that you do *actually* want to write to the file. I have not checked to see how it is being used though.

You could always stat the fh before the print (to get the atime and mtime) and then use utime to restore them afterwards although this is not reliably portable.

  • Comment on Re^4: Test for writable filehandles on win32

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found