No such thing as a small change | |
PerlMonks |
Re^5: Multiline matchby LanX (Saint) |
on May 23, 2013 at 16:45 UTC ( [id://1034986]=note: print w/replies, xml ) | Need Help?? |
thats the way it works
$patch must be included in $str not vice versa. No need for multiline because your pattern doesn't span multiple lines. '\Q' assures that regex syntax like '.' is escaped.
Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|