in reply to Age of dir in UNIX

Where did you get the code for getting the modified time, and the related test?

As shown, the if condition will always fails ($LastModified value of 1, if stat() succeeds, is not an array, so array dereference will fail), so the else branch is taken.

Only if strictness had been observed. :-/

Replies are listed 'Best First'.
Re^2: Age of dir in UNIX
by Anonymous Monk on Dec 04, 2013 at 20:52 UTC

    Correction. "[N]ot an array" in ...

    ... $LastModified value of 1, if stat() succeeds, is not an array, so array dereference will fail ...

    ... should have been "not an array reference".