in reply to Re: Re: Checking file Mod date
in thread Checking file Mod date

The -M filetest operator gives the number of days since modification since startup of the script, so:

my $age = -M $file; if ($age < 7) { # do something } # or directly if (-M $file < 7) { # do something }

-- Hofmator