in reply to print the status of the file
But you can't get the created time, because Unix doesn't store that information.
Or, using File::stat,my($accessed, $modified) = (stat "/foo/bar")[8, 9];
You should get the idea.use File::stat; my $s = stat "/foo/bar"; print scalar localtime $s->atime;
|
|---|