On Sun, Mar 05, 2000 at 01:08:24PM -0500, gnielson wrote:
| I am trying to figure out a way to test a file with perl to find out when
| it was lat modified and if that was within the last minute, do something,
| otherwise exit.
|
| I've gotten as far as this:
|
| $file='filename.txt';
| $lastMod
Hi there:
I am trying to figure out a way to test a file with perl to find out when
it was lat modified and if that was within the last minute, do something,
otherwise exit.
I've gotten as far as this:
$file='filename.txt';
$lastModified = printf "%f", -M $file;
which gives me a number such as