opendir (DIR, "$dir") || die "cant open dir.\n"; my @files = grep { /BLAH/ } readdir (DIR); closedir (DIR); for (@files) { do something; }
Zenon Zabinski | zdog | zdog7@hotmail.com
In reply to (zdog) Re: How to pattern match filenames in readdir?
by zdog
in thread How to pattern match filenames in readdir?
by nkpgmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |