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.