Re: Perl question comparing lastModified time to now

2000-03-05 Thread Cameron Simpson
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

Perl question comparing lastModified time to now

2000-03-05 Thread gnielson
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