in reply to [Solved] Testing generated HTML

X: I am writing something that uses Dancer2 and Template::Toolkit to produce HTML. I want to write tests along the lines of "is the fourth column of the third row of the second table what I expect?".

I'd use XML::XPath for that. XPATH expressions are straight-forward, the element hierarchy is the xpath itself, and elements can be indexed.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'