At Fri, 31 May 2002 16:11:41 +1000, Scott Ragen wrote:
> if ($ENV{'REQUEST_URI'} = adl ) { print "no Good\n";}
> 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.
for "contains", you want to match it against a simple "substring" regex:
if ($ENV{REQUEST_URI} =~ /adl/) { print "no Good\n"; }
--
- Gus
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
