<p>probably will be an overkill, have u considered a templating engine??? e.g Template::Toolkit? or even a simplier one</p>
<div class="gmail_quote">On Aug 26, 2012 2:52 PM, "Shmuel Fomberg" <<a href="mailto:shmuelfomberg@gmail.com">shmuelfomberg@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all.<br><br>I have an part of HTML that I need to edit. <br>Currently, I'm wrapping it in '<html><head></head><body>'.$str.'</body></html>',<br>and the use HTML::TreeBuilder to parse, modify, and dump it back to text.<br>
and then I remove the enclosing tags.<br><br>It works pretty well so far, but is there a better way?<br><br>Shmuel.<br>
<br>_______________________________________________<br>
Perl mailing list<br>
<a href="mailto:Perl@perl.org.il">Perl@perl.org.il</a><br>
<a href="http://mail.perl.org.il/mailman/listinfo/perl" target="_blank">http://mail.perl.org.il/mailman/listinfo/perl</a><br></blockquote></div>