[EMAIL PROTECTED] wrote: > Hello, > > I am looking to find out the age of a file in days, what is the best way to > do this using perl and maby file:stat or something? I have tried but get > some outrageous number in the millions!?
Untested: my $ctime = (stat $filename)[10]; # or mtime is 9 my $age = (time - $ctime) / 86400; -- ,-/- __ _ _ $Bill Luebkert ICQ=162126130 (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/ _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs