There may be modules to get the info, but I'm not sure. You should probably check
search.cpan.org.
Using
readdir() and
stat() are probably the best ways to do it.
If you don't want all of the info returned by stat, then take a slice of it.
For example, if you only want the access and modify times of a file, do something like:
my ($atime_stamp, $mtime_stamp) = (stat $file)[8,9];