my @badnames = glob( $dir . '/*{!,@,#,$,%,^,&}*');
Can't that be simplified to:
It works for me1.my @badnames = glob( $dir . '/*[!@#$%^&]*' );
- tye
1 Though not tested with punctuation characters as I didn't have any files with punctuation in their names for use in my quick test and the nearest operating system sanely refuses to put insane characters into file names.
In reply to Re^2: using glob to find "unwanted" file names (simpler)
by tye
in thread using glob to find "unwanted" file names
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |