Yes,
dump() is a method of the HTML::Element module, which is required by HTML::TreeBuilder.
I quote from CPAN:

$h->dump()
$h->dump(*FH) ; # or *FH{IO} or $fh_obj
Prints the element and all its children to STDOUT (or to a specified filehandle), in a format useful only for debugging. The structure of the document is shown by indentation (no end tags).

This is a sample of what the output of tree-> dump looks like:
<html> @0 <head> @0.0 <title> @0.0.0 <~text text="WO trail BARCELON/GAR - GERONA/CAR - 30N - 1"> @0.0 +.0.0 <meta content="text/html; charset=iso-8859-1" http-equiv="Content- +Type"> @0.0.1 <meta content="MSHTML 6.00.2800.1589" name="GENERATOR"> @0.0.2 <meta content="Mozilla/4.6 [fr] (WinNT; I) [Netscape]" name="GENER +ATOR"> @0.0.3 <body alink="#ff0000" bgcolor="#ffffff" link="#000080" text="#000000 +" vlink="#800080"> @0.1 <a name="HEADER"> @0.1.0 <center> @0.1.1 <h1> @0.1.1.0 <font size="+2"> @0.1.1.0.0 <~text text="WORK ORDER"> @0.1.1.0.0.0 <b> @0.1.6 <font size="-2"> @0.1.6.0 <~text text="trail"> @0.1.6.0.0 <table bgcolor="#66ffff" border=0 cellspacing=0 cols=8 width="100% +"> @0.1.7 <tbody> @0.1.7.0 <tr> @0.1.7.0.0 <td> @0.1.7.0.0.0 <font size="-2"> @0.1.7.0.0.0.0 <~text text="Node A"> @0.1.7.0.0.0.0.0 <td> @0.1.7.0.0.1 <font size="-2"> @0.1.7.0.0.1.0 <~text text="Node Z"> @0.1.7.0.0.1.0.0
In my code, this is what's written to an output file, and what I would rather have assigned to an array instead.

In reply to Re^2: HTML::TreeBuilder. Redirect tree->dump to an array by mm&mm
in thread HTML::TreeBuilder. Redirect tree->dump to an array by mm&mm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.