Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: •Re: Re: •Re: Re-runnably editing a file in place

by eyepopslikeamosquito (Archbishop)
on May 22, 2003 at 13:48 UTC ( [id://260059]=note: print w/replies, xml ) Need Help??


in reply to •Re: Re: •Re: Re-runnably editing a file in place
in thread Re-runnably editing a file in place

Mea Culpa. The Perl rename function seems to happily clobber a read-only file on Windows.

Update. The Perl rename function happily clobbers a read-only file on Win98 family but not on WinNT family! Looking at Perl's win32.c, the reason seems to be that MoveFileEx is used under Windows NT, while on Win98 (where MoveFileEx is not available) it deletes the target file before the rename.

  • Comment on Re: •Re: Re: •Re: Re-runnably editing a file in place

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found