perl parser that builds an HTML tree
