Do you know where your variables are? | |
PerlMonks |
•Re: Re: Oldest file using -Mby merlyn (Sage) |
on Apr 27, 2004 at 14:22 UTC ( [id://348500]=note: print w/replies, xml ) | Need Help?? |
If you want to make sure that -M always returns a positive valueNo, that's no guarantee. Using utime, I can set the modtime to any value I want, including far into the future. Or, I might have unpacked a file from a tar-archive from a system with a badly set system clock. So, you must always be prepared for a negative -M value. Always. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|