Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Perl oddities

by BrowserUk (Pope)
on Mar 01, 2005 at 13:51 UTC ( #435420=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Perl oddities
in thread Perl oddities

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.


Comment on Re^3: Perl oddities
Download Code
Re^4: Perl oddities
by halley (Prior) on Mar 01, 2005 at 15:55 UTC
    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 ]

Re^4: Perl oddities
by ysth (Canon) on Mar 02, 2005 at 01:11 UTC
    Ah; I was thinking the complaint was that they do not provide instantaneous ages in days, not that they don't just give timestamps, so I was giving justifications for having the ages be reported in terms of a fixed timepoint rather than as of the moment -M, etc. is executed, even though it results in oddities such as negative ages for timestamps later than $^T.

    bonus points for pointing out missing or extra commas in the above ramble; commas are not my forte

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://435420]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-10-01 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (38 votes), past polls