Maybe ->as_HTML does what you want? That method is mentioned immediately after ->dump in the HTML::Element documentation.
As you haven't told us what you want to achieve, or what ->dump actually does, all I can do is guess...
In reply to Re: HTML::TreeBuilder. Redirect tree->dump to an array
by Corion
in thread HTML::TreeBuilder. Redirect tree->dump to an array
by mm&mm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |