in reply to XML::LibXML complains

Better yet, the following provides a local copy of the HTML/XHTML DTDs and has XML::LibXML use them instead of trying to download them.

use XML::Catalogs::HTML -libxml;

no_network => 1 is a good option to pass to XML::LibXML.