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
In reply to Re: Apply mtime and atime to new file
by Abigail-II
in thread Apply mtime and atime to new file
by APA_Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |