in reply to html to hash table

If your data is all in a table, HTML::TableExtract could be what you need.

If there is other data, or the data is not all tabular, using an HTML parser together with XPath expression has proven to be a good approach. See for example HTML::TreeBuilder(::LibXML) together with HTML::Selector::XPath.