The result is :#! /usr/bin/perl my $url="<Url><![CDATA[http://abc.com/search?q=perl+grep+&ie=utf8&oe=u +tf8&aq=t]></Url>"; my $str="dog"; my @f=("dog","<Url><![CDATA[http://abc.com/search?q=perl+grep+&ie=utf8 +&oe=utf8&aq=t]></Url>"); if(grep{/$url/}@f){print "Match!!\n";} else {print "No match\n";}
No match.
In reply to Grep strings with special characters by baski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |