in reply to Apply mtime and atime to new file
I am doing major edits to sgml files through regex. Basically I am taking the original file as a string, editing the string and then printing the string to a new file. I want the new file to retain the modified and accessed dates of the original file. Here's my attempt so far:Yes? Is there a question that I am missing?
One remark though, your code is doing 5 different system calls (open, close, unlink, rename, utime) of which you are not checking whether they succeed or not. Each of them might fail.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Apply mtime and atime to new file
by APA_Perl (Novice) on Dec 08, 2003 at 16:55 UTC | |
by Abigail-II (Bishop) on Dec 08, 2003 at 17:06 UTC |