in reply to File Age in Seconds ? (need more handholding)

my $seconds_since_modified = 86400 * -M $filename_or_filehandle;

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: File Age in Seconds ? (reask)
by ptum (Priest) on Dec 22, 2005 at 21:54 UTC

    Heh. I once wrote some rather strange code that did something (I forget what) every 864 seconds. Years later, when challenged about that particular value, I looked at the questioner pityingly and said, in my most condescending tone, "1% of a day, of course."

    I then beat a hasty retreat. :)