in reply to How do I get the last accessed time for directory?
With stat:
Or, if you'd like a nicer interface to stat, use File::stat:my $atime = (stat "foo_dir")[8];
Either of those will put the last accessed time, in epoch seconds, into $atime.use File::stat; my $stat = stat "foo_dir"; my $atime = $stat->atime;
|
---|
In Section
Seekers of Perl Wisdom