4 ms·Remove or extract HTML element by Perl script3 points by mardiyah 5y agonanis 5y agoUse https://metacpan.org/pod/HTML::TreeBuilder::XPath https://metacpan.org/pod/HTML::TreeBuilder::XPath instead. This code is horrible spaghetti.