
Cure
User
Apr 18, 2000, 7:14 PM
Post #5 of 8
(1862 views)
|
Hi Use the File::stat module and that will take care of your needs. This module's default exports override the core stat() and lstat() functions, replacing them with versions that return "File::stat" objects. This object has methods that return the similarly named structure field name from the stat(2) function; namely, dev, ino, mode, nlink, uid, gid, rdev, size, atime, mtime, ctime, blksize, and blocks. To find out when a file was created, just do this-> #!/usr/bin/perl use File::stat; $file = "filetotest.htm"; $sb=stat($file); print scalar localtime $sb->mtime; Cure [This message has been edited by Cure (edited 04-18-2000).]
|