baski has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Grep strings with special characters
by prasadbabu (Prior) on Sep 13, 2010 at 06:50 UTC | |
Re: Grep strings with special characters
by suhailck (Friar) on Sep 13, 2010 at 07:42 UTC | |
Re: Grep strings with special characters
by CountZero (Bishop) on Sep 13, 2010 at 14:14 UTC | |
Re: Grep strings with special characters
by repellent (Priest) on Sep 13, 2010 at 18:01 UTC |