in reply to Finding Oldest File in a Directory
my $x = stat("$dirname/$file")->mtime;
Alternately you could chdir() to $dirname and make your stats the same way you are now.
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding Oldest File in a Directory
by Aristotle (Chancellor) on Oct 08, 2005 at 19:34 UTC |