I see you got a solution, I just thought I would point out that I recently needed to learn
HTML::TokeParser as well and found the
HTML::TokeParser Tutorial to be very valuable and accurate.
I have also found the
Tutorials page to be a nice place to go when RTFM has not helped.
Heh, don't get me wrong, I am not trying to get you not to post here, just presenting a resource many here forget about.
"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!