How can I narrow $file to only files with BLAH in the name?opendir(DIR, "$dir") || die "cant open dir.\n"; while (defined(my $file = readdir DIR) { do something; } closedir(DIR);
In reply to How to pattern match filenames in readdir? by nkpgmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |