more useful options | |
PerlMonks |
Re: •Re: Re: •Re: Re-runnably editing a file in placeby eyepopslikeamosquito (Archbishop) |
on May 22, 2003 at 13:48 UTC ( [id://260059]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|