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:

my @badnames = glob( $dir . '/*[!@#$%^&]*'­ );
It works for me1.

                - 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

    Yes, that's certainly better when testing for single characters.

    After Compline,
    Zaxo