Change
print "Last change:\t" . scalar localtime($mtime) . "\n";
to
print "Last change:\t" . ctime(localtime($mtime)) . "\n";
as mention in the Time::localtime docs.
In reply to Re: Get file timestamp for a file in a directory
by ikegami
in thread Get file timestamp for a file in a directory
by Newbee21369
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |