in reply to using glob to find "unwanted" file names
You're trying to use perl regexen as glob patterns. That doesn't work, as you found. Write those as csh-style shell globs. For instance to pick out names with punctuation, my @badnames = glob( $dir . '/*{!,@,#,$,%,^,&}*'); You may have to play around with the patterns, but you don't need quotemeta. File::Glob takes care of globbing no matter what the platform and the shell is not called.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using glob to find "unwanted" file names (simpler)
by tye (Sage) on Dec 01, 2003 at 22:40 UTC | |
by Zaxo (Archbishop) on Dec 01, 2003 at 22:53 UTC | |
|
Re: Re: using glob to find "unwanted" file names
by Plankton (Vicar) on Dec 01, 2003 at 22:09 UTC | |
|
Re: Re: using glob to find "unwanted" file names
by Plankton (Vicar) on Dec 01, 2003 at 22:54 UTC |