in reply to Re: How to pattern match filenames in readdir?in thread How to pattern match filenames in readdir?
my @file = grep {/BLAH/} readdir (DIR); foreach $file @file { do something; } [download]