Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Comparing file properties

by Laurent_R (Abbot)
on Jun 26, 2013 at 17:46 UTC ( #1040821=note: print w/replies, xml ) Need Help??

in reply to Comparing file properties

Why are you not simply using the -M -A or -C file test operators which return directly the age of the file in days (and fractions of days)? It seems that's doing exactly what you need.

-M : last modification

-A : last access

-c : last inode change

Replies are listed 'Best First'.
Re^2: Comparing file properties
by mcoblentz (Scribe) on Jun 27, 2013 at 00:44 UTC
    Well, that is exactly what I am looking for. -M it is!

    Thank you!

      The documentation for the file test operators is in perlfunc under -X, which can be a little tricky to track down unless you were specifically looking for the -X operator.

      Alternatively, from the commandline, it's a little easier (although these still all take you the the same doco):

      $ perldoc -f -M $ perldoc -f -A $ perldoc -f -C $ perldoc -f -X

      -- Ken

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2016-10-28 13:54 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (383 votes). Check out past polls.