http://qs321.pair.com?node_id=513724


in reply to Help with HTML::Element->splice_content

Another thing: you can't be using TreeBuilder - you spelled the "b" with lowercase and it should be uppercase.

At any rate, just break the tree into elements, and traverse or map through them and then ->detach() the ones that you want gone... example to follow.