The following script stores all the files and directories in the array @file_list
.
How do I only filter only files with the .lt6
extension and none other than that?
opendir (CURRDIR, $localdir);
@file_list = grep !/^\.\.?$/, readdir CURRDIR;
print STDOUT "Found Files: @file_list\n";
cheers