I'm with Grandpa on this one. I've used HTML::TreeBuilder with good results. The HTML::Elements will have all of the attribs. You can look for all elements in a tree that have a 'src' attrib, all links, whatever.
I like computer programming because it's like Legos for the mind.