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. :-/
In reply to Re: Age of dir in UNIX
by Anonymous Monk
in thread Age of dir in UNIX
by kaka_2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |