I am all logic'd out. a mars bar in the mail to anyone, who can simplify this for me!
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/ )
In addition I'd also like to get the following in there...
PseudoCoded
false if $ENV{'REQUEST_URI'} contains "FalseIfJustThis" true if $ENV{'REQUEST_URI'} contains "FalseIfJustThis" AND contains "ButIfAlsoThisThenTrue")
there are some instances where "ButIfAlsoThisThenTrue" should lead to a false, so merely working it on this string won't work.

My knickers are in a twist, and i am fairly sure i am going the wrong way about this!!
Cheers
ant

edited by ybiC: balanced <code> tags and format tweaks


In reply to If Simplification by fourmi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.