| Programming C# C++ (7) Delphi (604) Java (8) JavaScript (55) perl (40) mysql (3) perl CGI (3) php (12) VBScript (1) Visual Basic (1) |
How do I get a file's date / timestamp in perl?
(1 votes). Leave comments and/ or rate it.
Question: How do I get a file's date / timestamp in perl?Answer: For clean code, it is recommended to use File::stat module which is part of the standard distribution in version 5.004 and later.Use method mtime() to get the last modification time. This is the time the file itself was modified last. Instead you can also use stat.ctime which is the time directory information about the file was changed, not the file itself. stat.atime is the last time the file was accessed.
Comments:
|