in reply to Re: using glob to find "unwanted" file names
in thread using glob to find "unwanted" file names
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: using glob to find "unwanted" file names (simpler)
by Zaxo (Archbishop) on Dec 01, 2003 at 22:53 UTC |