http://qs1969.pair.com?node_id=383904


in reply to Getting modified date for a file (Win32)

I use that on NT4 all the time... are you using UNC filenames or a mapped drive? (UNC works). Try a one-liner...

C:\rexec>echo > file.txt
C:\rexec>perl -e "print scalar localtime((stat('file.txt'))[9])"
Wed Aug 18 10:33:50 2004