Thanks a lot for ur help. stat function is working perfectly fine
use File::stat;
$sb =
stat($filename);
printf "File is %s, size is %s, perm %04o, mtime %s\n",
$filename, $sb->size, $sb->mode & 07777,
scalar localtime $sb->mtime;
use File::stat;
$sb =
stat($filename);
printf "File is %s, size is %s, perm %04o, mtime %s\n",
$filename, $sb->size, $sb->mode & 07777,
scalar localtime $sb->mtime;
Have not tried the version from dennis. will try.
But can't be get those parameters from Unix shell.
I mean even if not in seconds just the ctime, mtime and atime
Regards,