On Fri, May 31, 2002 at 04:11:41PM +1000, Scott Ragen wrote:

> if ($ENV{'REQUEST_URI'} = adl ) {
[snip]
> I want the if statement to say, if REQUEST_URI *CONTAINS* adl then print
> "no good" (it will change but this is testing) else continue.
> 
> Another problem I have noticed, is it changes the $ENV{REQUEST_URI} to
> adl, which is not what I want, I want it to be what it says.

That's because you've coded it as an assigment:

    operator    meaning
        =       assignment
        ==      numeric equality
        eq      string equality


Cheers,

John
-- 
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to