Markup-Tree

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

            Instead of looping over the whole tree, this value can be a
            Markup::TreeNode start point. (See "BUGS" section)

            Example: $tree->foreach_node( sub { my $node = shift();
            indent($node->{'level'}); print $node->{'tagname'}."\n"; }, sub
            { my $node = shift(); indent($node->{'level'}); print
            $node->{'tagname'}."\n"; } );

        RETURN VALUES MATTER!

        Returning a false value will end the iterations and cause the method
        to return. Return true to keep processing.

    copy_of
        Returns a copy, not a reference, of the tree.

CAVEATS
    This module isn't really the best for people who don't often use markup.
    It requires quite a few modules (I actually feed bad about the module
    requirements), and "HTML::TreeBuilder" or "XML::Parser" is probably a
    better choice for most things you want to do. On the upside, if you

lib/Markup/Tree.pm  view on Meta::CPAN

			my $node = shift();
			indent($node->{'level'});
			print $node->{'tagname'}."\n";
		}
	);

=back

B<RETURN VALUES MATTER!>

Returning a false value will end the iterations and cause the method to return.
Return true to keep processing.

=item copy_of

Returns a copy, not a reference, of the tree.

=back

=head1 CAVEATS



( run in 1.510 second using v1.01-cache-2.11-cpan-71847e10f99 )