Image-ExifTool - Re: Perl equivalent of -P option

Posted on Fri Nov 7 13:22:02 2008 by exiftool in response to 9243 (See the whole thread of 2)
Re: Perl equivalent of -P option
It's not so pretty, but here's how you do it in a Perl script:

my $modTime = $^T - (-M $file) * (24 * 3600); my $accTime = $^T - (-A $file) * (24 * 3600); [ ... process file here ... ] utime($accTime, $modTime, $file);

- Phil
Write a response