in reply to search a regex list
$perm = 400 if $file =~ /catalina\.properties|\.key$|tomcat-users\.xml +/;
$perm = 400 if grep { $file =~ $_ }, qr/catalina.properties/, qr/\.key +$/, qr/tomcat-users.xml/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search a regex list
by equick (Acolyte) on Dec 12, 2010 at 10:49 UTC | |
by roboticus (Chancellor) on Dec 12, 2010 at 13:06 UTC |