HTML::DOM::NodeList - Magical node list class for HTML::DOM
use HTML::DOM; $doc = HTML::DOM->new; $list = $doc->getElementsByTagName('p'); # returns an HTML::DOM::NodeList::Magic object $list->[0]; # first node $list->item(0); # same $list->length; # same as scalar @$list
See HTML::DOM::NodeList both for a description and the API.
HTML::DOM
HTML::DOM::NodeList
To install HTML::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::DOM
CPAN shell
perl -MCPAN -e shell install HTML::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.