in reply to Re^2: log file in perl.
in thread log file in perl.

You've already got the filenames in your foreach loop. Each iteration of $file has the filename.

For dates/times of files, have a peek at stat