in reply to How to Know how much old my file is

Also see the documentation on the -M operator:

if( -M $file > 7 ) { print "$file is older than 7 days.\n"; }

Replies are listed 'Best First'.
Re^2: How to Know how much old my file is
by ravi45722 (Pilgrim) on Sep 15, 2015 at 08:28 UTC

    Ya it's simpler & lighter. Working very well