Getting wrong result when parsing HTML string as a scalar reference.
See https://rt.cpan.org/Ticket/Display.html?id=87089 .
To install XML::LibXML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::LibXML
CPAN shell
perl -MCPAN -e shell install XML::LibXML
For more information on module installation, please visit the detailed CPAN module installation guide.