On Mon, Jul 23, 2001 at 10:21:22PM -0500, Steve Howard wrote:
> Actually, in reading that directory, you can use -M to find the age in days
> of a file. This will be in decimal, so to get an integer age, use the int
> function. Something like this:

That's true, it is easier, and I'm not sure why I overlooked it.  Probably
because I don't use -M or -A much.  However, it's even easier than you show. 
There's no need to get the integer portion, 7.5 is greater than or equal to
7 just as much as 7 is.

Also, he wanted to check access time as well, in which case he should review
perldoc -f -X to read about -M and the other -X operators.


Good catch.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to