At 16:12 2002-12-04 +1100, Schulz, Konrad wrote:
$url1 =~ /m/$url2(\/)?/i
But as soon as I got a URL with a query it is not working at all!
I have a feeling it's because the query character, "?", is a RE metacharacter, so that "thing.pl?stuff" doesn't mean "match these characters: thing.pl?stuff", but instead means "match thing.p, an optional l, then stuff".

What happens if you do $url2 = quotemeta($url2) before that match?


--
Sean M. Burke http://search.cpan.org/author/sburke/



Reply via email to