You're trying to use perl regexen as glob patterns. That doesn't work, as you found. Write those as csh-style shell globs. For instance to pick out names with punctuation, my @badnames = glob( $dir . '/*{!,@,#,$,%,^,&}*'); You may have to play around with the patterns, but you don't need quotemeta. File::Glob takes care of globbing no matter what the platform and the shell is not called.
After Compline,
Zaxo
In reply to Re: using glob to find "unwanted" file names
by Zaxo
in thread using glob to find "unwanted" file names
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |