in reply to Opendir and regex

hommer,
You did not specify what the problem (error) was?
Is there anything in your array, are you matching on
anything? gman
opendir RDIR, $path; my @DIRLIST = grep { ( /search pattern/ ) && !/\.gz$/ } readdir RDIR;