in reply to WWW::Mechanize on broken HTML

I'm not an HTML guru, but I don't see anything wrong with the HTML you posted. Maybe you should show us the Perl you've written along with an explanation of what you expect it to do and how it is not meeting those expectations (i.e., what does it do).