in reply to Re: How to extract Req files into some other directory using Modules
in thread How to extract Req files into some other directory using Modules

$name = "(\.dll|\.exe)\$";
As a minor point, I wouldn't use capturing parens where not needed, I'd write
my $name = qr/\.(?:dll|exe)$/;
instead. And as you can see from this line itself, I wouldn't put into a string to interpolate it later, but I would create Regex object, especially since it isn't supposed to change. But then I wouldn't probably create any intermediate variable, in this case, that is:
find sub { push @files, $_ if /\.(?:dll|exe)$/ }, @dirs;