in reply to Re: If Simplification
in thread If Simplification
Which reads a lot less awkwardly using $_.if( $ENV{REQUEST_URI} =~ $regex ? $ENV{REQUEST_URI} =~ $regex2 : 1 ) { # ... }
In other words, if matching $regex succeed, then it depends on whether it matches $regex2, if it failed, then it's always true.local $_ = $ENV{REQUEST_URI}; if(/$regex/ ? /$regex2/ : 1) { # ... }
Makeshifts last the longest.
|
|---|