Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for the help!... opendir(DIR, $all_session) or die "Couldn't open directory, $!"; while (my $sessions = readdir DIR) { # Use a regular expression to ignore files beginning with a peri +od next if ($sessions =~ m/^\./); next if ($sessions !~ /^cgisess_[a-f0-9]{32}$/); if( -M qq{$all_session/$sessions} > 360){ # 6 minutes print "Del these session files: $sessions<br>";} } closedir DIR; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Delete on age of files Help!
by toolic (Bishop) on Jan 16, 2011 at 03:15 UTC | |
by Anonymous Monk on Jan 16, 2011 at 04:00 UTC | |
by Marshall (Canon) on Jan 17, 2011 at 19:06 UTC | |
by Anonymous Monk on Jan 16, 2011 at 04:05 UTC | |
by toolic (Bishop) on Jan 16, 2011 at 04:11 UTC | |
|
Re: Delete on age of files Help!
by Anonymous Monk on Jan 16, 2011 at 04:16 UTC |