anthracite98
Programmer
Have a script the reads a directory of uploaded files and prints them out. I need to 1: sort them by date (newest printed first) and then 2: print the date next to the filename. Can anyone help me? thanks.
-mo
script below:
opendir(FILES,"$SAVE_DIRECTORY"
@allfiles = sort(grep(!/^\.\.?$/,readdir(FILES)));
closedir(FILES);
foreach$file(@allfiles) {
print "$file\n";
}
exit;
}
-mo
script below:
opendir(FILES,"$SAVE_DIRECTORY"
@allfiles = sort(grep(!/^\.\.?$/,readdir(FILES)));
closedir(FILES);
foreach$file(@allfiles) {
print "$file\n";
}
exit;
}