in reply to Re: using glob to find "unwanted" file names
in thread using glob to find "unwanted" file names

Hi Zaxo,
Again thanks ... maybe you can answer this question too?
I have this now ...
my @badnames = glob( $dir . '/*{!,@,#,$,%,^,&,\ ,(,),[,|,<,>,;,+,=,`,~ +}*');
This works fine, but when I try and add ] or } or \ everything matches. I have tried \] \} and \\. The funny thing is that [ { work just fine.

Plankton: 1% Evil, 99% Hot Gas.