Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use File::Find; @ARGV = ('.') unless @ARGV; my ($age, $name); sub oldest { return if defined $age && $age < (stat($_))[9]; $age = (stat(_))[9]; $name = $File::Find::name; } find(\&oldest, @ARGV); print "$name " . scalar(localtime($age)) . "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Listing old files
by Ratazong (Monsignor) on May 09, 2011 at 06:16 UTC | |
by Anonymous Monk on May 09, 2011 at 09:41 UTC | |
by Ratazong (Monsignor) on May 09, 2011 at 11:04 UTC | |
|
Re: Listing old files
by happy.barney (Friar) on May 09, 2011 at 07:17 UTC | |
|
Re: Listing old files
by anonymized user 468275 (Curate) on May 09, 2011 at 14:23 UTC |