my $x = stat("$dirname/$file")->mtime;
Alternately you could chdir() to $dirname and make your stats the same way you are now.
-sam
In reply to Re: Finding Oldest File in a Directory
by samtregar
in thread Finding Oldest File in a Directory
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |