use HTML::Display; use File::Slurp qw/read_file/; my $html =read_file('xx.html'); display($html);