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;
In reply to Re: print the status of the file
by btrott
in thread print the status of the file
by vrempire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |