|laziness, impatience, and hubris|
Re: Perl odditiesby BrowserUk (Pope)
|on Mar 01, 2005 at 11:34 UTC||Need Help??|
The -M, -A, and -C file test operators return the file modification, access, and creation times in days since the start of the program. Why? Why why why? Does anyone actually use the values for anything other than to compare them to each other?
The relativity of the dates produced by -M, -C and -A are useful for things like "delete all *.tmp files more than 5 days old" etc.
For example, this lists all the .pl file in the current directory that have been modified in the last 24 hours.
My least favorite oddity is the need to use /g option on a regex in order for pos to be set.
Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.