in reply to html parser.

There's HTML::Parser, which will tree-ify your HTML document, which you can transverse to find what you need.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain