use File::stat; opendir(DIR, "t:\\") or die "can't opendir $dirname: $!"; @files = readdir(DIR); closedir(DIR); foreach $file (@files) { print "$file\n"; $statusFile=stat(<path\to\file\filename>); print $statusFile->mtime; ##Modification time }
In reply to Re: Reading a directory and getting file dates
by sasikumar
in thread Reading a directory and getting file dates
by esolm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |