HTML::Linear - represent HTML::Tree as a flat list
version 0.019
use Data::Printer; use HTML::Linear; my $hl = HTML::Linear->new; $hl->parse_file(q(index.html)); for my $el ($hl->as_list) { my $hash = $el->as_hash; p $hash; }
Internal list representation.
Internal shrink mode flag.
Internal strict mode flag.
Used for internal collision detection.
Used internally for computing numeric tag indexes (like in /p[3]).
/p[3]
Access list as array.
Number of elements in list.
Element accessor.
Enable XPath shrinking.
Disable XPath shrinking.
Do not group by id, class or name attributes.
id
class
name
Group by id, class or name attributes.
Overrides HTML::TreeBuilder eof.
eof
Add an element to the list.
Recursively scan underlying HTML::TreeBuilder structure.
Stanislaw Pusep <stas@sysd.org>
This software is copyright (c) 2014 by Stanislaw Pusep.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HTML::Untemplate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Untemplate
CPAN shell
perl -MCPAN -e shell install HTML::Untemplate
For more information on module installation, please visit the detailed CPAN module installation guide.