http://qs321.pair.com?node_id=462653


in reply to Re: Reading a directory and getting file dates
in thread Reading a directory and getting file dates

If all you want is the $mtime, you might as well use this:

my $mtime = (stat("/home/user/ptest/$dir"))[9];

...at least it's easier to read ;)

--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re^2: Reading a directory and getting file dates
by cool_jr256 (Acolyte) on Jun 01, 2005 at 20:59 UTC
    Very true :)...I was a little too eager on the reply :), but at least it shows the available info one can get from 'stat'...
      but at least it shows the available info one can get from 'stat'

      A simple link to stat would do that too, and probably be even more helpful ;)

      --
      b10m

      All code is usually tested, but rarely trusted.