[Israel.pm] Editing an HTML fragment

Natty aloha2004 at gmail.com
Sun Aug 26 04:57:46 PDT 2012

probably will be an overkill,  have u considered a templating engine??? e.g
Template::Toolkit? or even a simplier one
On Aug 26, 2012 2:52 PM, "Shmuel Fomberg" <shmuelfomberg at gmail.com> wrote:

> Hi all.
> I have an part of HTML that I need to edit.
> Currently, I'm wrapping it in
> '<html><head></head><body>'.$str.'</body></html>',
> and the use HTML::TreeBuilder to parse, modify, and dump it back to text.
> and then I remove the enclosing tags.
> It works pretty well so far, but is there a better way?
> Shmuel.
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20120826/2916077b/attachment.htm 

More information about the Perl mailing list