rser = HTML::HTML5::Parser->new; my $dom = ($input eq '-') ? $parser->parse_string(do { local $/ = <STDIN> }) : $parser->parse_file($input); # Use HTML::HTML5::Sanity to fix up HTML qui