in reply to Re: How to pattern match filenames in readdir?
in thread How to pattern match filenames in readdir?

I got the following to work:
my @file = grep {/BLAH/} readdir (DIR); foreach $file @file { do something; }
Thanks for your help!