Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Comparing file properties

by Laurent_R (Canon)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-06-24 11:52 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.