http://qs321.pair.com?node_id=667750


in reply to How do I determine file creation or last-access date?

The ctime() function provides a way of getting at the scalar sense of the original CORE::localtime() function.

use Time::localtime; use File::stat; for ( @ARGV ) { print "\nFile: $_"; print "\n Last access time: ", ctime( stat($_)->atime ); print "\n Last modify time: ", ctime( stat($_)->mtime ); print "\n File creation time: ", ctime( stat($_)->ctime ); }