Ideally I'd like to have the file name in one variable $file and the date in another $date. If I don't find a handy way of doing this then I'm going to have to do something stupid like load the list of files into an array and then run through the array and get the properties for each file (stupid). Please help.opendir(DIR, "t:\\") or die "can't opendir $dirname: $!"; @files = readdir(DIR); closedir(DIR); foreach $file (@files) { print "$file\n";
In reply to Reading a directory and getting file dates by esolm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |