#!/usr/bin/perl -- use strict; use warnings; use Path::Tiny qw/ path /; for my $file ( path('.')->children ){ my $days = -M $file; if( $days > 7 ){ print qq{rm "$file" :: $days\n}; } } __END__
In reply to Re: How to Know how much old my file is
by Anonymous Monk
in thread How to Know how much old my file is
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |