[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Modification date



At 00.12 +0200 98-08-30, Brian "L." Matthews wrote:
>|>Does anyone know how to get the modification date of
>|>a file using MacPerl?
>|$mod_date = $^T - 86400*(-M $filename);
>
>Maybe I'm missing something obvious here, but what's wrong with stat?

Nothing, really, but TIMTOWTDI. I prefer -M, because stat returns a lot of
stats about the file, and when I just want one of them, I'll have to throw
away the rest of them. I prefer getting what I want to getting more and
throwing most of it away...

Cajo.

___Carl_Johan_Berglund_________________________
   Adverb Information
   carl.johan.berglund@adverb.se
   http://www.adverb.se/



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch