fourmi has asked for the wisdom of the Perl Monks concerning the following question:
In addition I'd also like to get the following in there...if ( ($ENV{'HTTP_REFERER'} && $ENV{'REMOTE_ADDR'} ne "129.215.67.96") && $ENV{'REQUEST_URI'} !~ /\/bulletin\// && $ENV{'REQUEST_URI'} !~ /\.c +ss/ && $ENV{'REQUEST_URI'} !~ /\.ico/ && $ENV{'REQUEST_URI'} !~ /formmail\. +/ && $ENV{'REQUEST_URI'} !~ /\/prosp\// && $ENV{'REQUEST_URI'} !~ /\/cale +ndar\// && $ENV{'REQUEST_URI'} !~ /\/edit\// && $ENV{'REQUEST_URI'} !~ /tmp\/calendar2002-3\/pgradh\/regs\/029\.html/ )
there are some instances where "ButIfAlsoThisThenTrue" should lead to a false, so merely working it on this string won't work.false if $ENV{'REQUEST_URI'} contains "FalseIfJustThis" true if $ENV{'REQUEST_URI'} contains "FalseIfJustThis" AND contains "ButIfAlsoThisThenTrue")
edited by ybiC: balanced <code> tags and format tweaks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: If Simplification
by broquaint (Abbot) on Aug 07, 2003 at 10:58 UTC | |
by fourmi (Scribe) on Aug 07, 2003 at 11:10 UTC | |
by Aristotle (Chancellor) on Aug 07, 2003 at 15:45 UTC | |
|
Re: If Simplification
by dbwiz (Curate) on Aug 07, 2003 at 10:59 UTC | |
by fourmi (Scribe) on Aug 07, 2003 at 11:27 UTC | |
|
Re: If Simplification
by edoc (Chaplain) on Aug 07, 2003 at 11:05 UTC | |
by Anonymous Monk on Aug 07, 2003 at 11:58 UTC | |
by fourmi (Scribe) on Aug 07, 2003 at 11:30 UTC |