in reply to Re^2: Getting the timestamp of a file
in thread Getting the timestamp of a file
Worked pretty well here. What do you mean with "i use the local time module to build a time function to tell me what time it is, and anytime the use::localtime module is active and i use the localtime function i get errors"?? If you have a local "localtime.pm" module, change its name and the name of the "faux-localtime" function, because it's not good practice to clobber core functions' names.$ ls -l monlog.txt -rw------- 1 h h 10755194 2008-05-30 12:59 monlog.txt $ perl -le 'print scalar localtime((stat)[9]) for @ARGV' monlog.txt Fri May 30 12:59:45 2008 $ perl -MFile::stat -le 'print scalar localtime(stat($_)->mtime) for @ +ARGV' monlog.txt Fri May 30 12:59:45 2008
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Getting the timestamp of a file
by broomduster (Priest) on Jul 30, 2008 at 16:33 UTC |