equick has asked for the wisdom of the Perl Monks concerning the following question:
For example, using grep with something like:$perm=400 if $file=~/catalina\.properties/ || $file=~/\.key$/ || $file +=/tomcat-users\.xml/;
Thanks for any help.$perm=400 if grep {/$file/}, qw(catalina.properties \.key$ tomcat-user +s.xml);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search a regex list
by jwkrahn (Abbot) on Dec 12, 2010 at 10:38 UTC | |
by equick (Acolyte) on Dec 12, 2010 at 10:49 UTC | |
by roboticus (Chancellor) on Dec 12, 2010 at 13:06 UTC | |
|
Re: search a regex list
by AnomalousMonk (Archbishop) on Dec 12, 2010 at 11:17 UTC | |
|
Re: search a regex list
by eff_i_g (Curate) on Dec 12, 2010 at 18:10 UTC | |
|
Re: search a regex list
by CountZero (Bishop) on Dec 13, 2010 at 07:19 UTC |