Thanks, both. I've gone with the HTML::TreeBuilder::XPath option.
In reply to Re^3: Merging two anchors with HTML::TreeBuilder by mldvx4 in thread Merging two anchors with HTML::TreeBuilder by mldvx4