in reply to Parsing HTML

use HTML::Tree. Example HTML::Tree(Builder) in 6 minutes