The stupid question is the question not asked | |
PerlMonks |
Re: escaping <!-- and --> in substitution...or other help plzby ktross (Deacon) |
in substitution...or other help plz NODE.owner = 434261 N.title = monktitlebar sitedoclet N.owner = 17342 --> |
on Apr 03, 2005 at 02:08 UTC ( [id://444463]=note: print w/replies, xml ) | Need Help?? |
Many charactures have to be escaped in regex's... try changing: $content =~ s/<!--\n//; to $content =~ s/\<\!\-\-\n//; and $content =~ s/\n-->//; with $content =~ s/\n\-\-\>//; update:I put the code I provided in code tags. I appologize for the low quality of this post. I just started working on a reply when my fiance' tossed my laptop aside and ravanged me. (Kind of like the story of St Kevin but without the nettles, or the nunery) How un-monk-like! I might take another stab at this later.
In Section
Seekers of Perl Wisdom
|
|