neilwatson has asked for the wisdom of the Perl Monks concerning the following question:
# filter any unwholesome file names next if ( !-f $file || $file =~ m/ ^\.| # begins with a '.' \.txt$| # is a .txt file \$|&|<|>|@|\/ # contains any shell control characters /x );
Neil Watson
watson-wilson.ca
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex and negative file test
by Corion (Patriarch) on Dec 06, 2006 at 20:56 UTC | |
|
Re: Regex and negative file test
by johngg (Canon) on Dec 06, 2006 at 21:13 UTC | |
by Not_a_Number (Prior) on Dec 06, 2006 at 21:58 UTC | |
by johngg (Canon) on Dec 06, 2006 at 23:09 UTC | |
by Not_a_Number (Prior) on Dec 07, 2006 at 00:29 UTC |