HTML::Linear - represent HTML::Tree as a flat list
version 0.002
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 strict mode flag.
Used for internal collision detection.
Add an element to the list.
Access list as array.
Number of elements in list.
Element accessor.
Do not group by id, class or name attributes.
id
class
name
Group by id, class or name attributes.
Overrides HTML::TreeBuilder eof.
eof
Recursively scan underlying HTML::TreeBuilder structure.
Stanislaw Pusep <stas@sysd.org>
This software is copyright (c) 2012 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::Linear, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Linear
CPAN shell
perl -MCPAN -e shell install HTML::Linear
For more information on module installation, please visit the detailed CPAN module installation guide.