in reply to Re: Perl oddities in thread Perl oddities
and having it be relative to the start of the program (actually, $^T, which you can change to suit) saves having to call time() for each -M, -A, or -C (in addition to making the results equal for different files with the same timestamp).
Re^3: Perl oddities
by BrowserUk (Patriarch) on Mar 01, 2005 at 13:51 UTC
|
saves having to call time() for each -M, -A, or -C (in addition to making the results equal for different files with the same timestamp).
I'm not quite sure I follow that. If they just returned the timestamp from the files as absolute values, you wouldn't have to call time() at all? And the results of different files with the same timestamps would be the same anyway?
Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.
| [reply] [d/l] |
|
The relative versions allow you to express your problems in problem terms, not in implementation terms. Which is nice when you're writing a perl -e type solution. Think of all the other Perl shortcuts that are designed to let you express your solution in terms of the problem, not in terms of the opcodes.
-- [ e d @ h a l l e y . c c ]
| [reply] [d/l] |
|
| [reply] |
|