in reply to Re^3: grab newest file
in thread grab newest file

Comparing mtime (timestamp) and -M is bogus. -M gives you the script start time minus file modification time, in days.

update - oops, sometimes I'm a lousy reader - the referred post compares only -M against -M. Read the above just as a general statement ;-)

thanks jwkrahn

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^5: grab newest file
by jwkrahn (Abbot) on Jul 07, 2006 at 11:25 UTC
    The code I posted is only comparing the -M value with other -M values. The $mtime in the code is just a variable name.