Modifying a File Without Changing Its Timestamp

in Perl Tips, Files & Directories
by William Ward on October 25, 2004 3:51 pm

Your file system keeps track of when each file was last modified. But have you ever wanted to edit a file without affecting its timestamp? Using the "utime" function, which is built in to Perl, you can! Here’s how:

(more…)