in reply to scope and packages

The best approach is probably to follow the examples in the documentation.

use XML::LibXML; my $parser = XML::LibXML->new; my $doc = $parser->parse_html_file($file);

Something along those lines should work. Looks like you were calling XML::LibXML::new rather than XML::LibXML->new.

--

See the Copyright notice on my home node.

Perl training courses