in reply to using glob to find "unwanted" file names
I can eliminate opening brackets, but when I try to escape a closing bracket, suddenly nothing matches.for my $FN ( glob "$dir/".'*[\ \\?<>,`!@#$%^&*();+={}[]*' ) {
Note that you could get the same effect with
Season to taste.for my $FN ( grep /[ \\?<>,`!@#$%^&*();+={}[\]]/, <*>)
|
|---|