in reply to Replacing text between two html comments
You're probably okay with this as long as you can reasonably guarantee that your comment tokens are unique within any given document. Otherwise use a real parser, such as HTML::Parser. Or use a template system like Text::Template.
Cheers,
Matt
|
---|