in reply to extracting attribute from HTML tag

If that's all you're trying to do, then a simple string match should work for you. For example:
$s = "(<a class='team' href='javascript:void(0)' title='(PEN.66) O FLY +NN RILEY (51)'>"; $s =~ /title='([^']+)'/; print "title: $1\n";

That returns:

title: (PEN.66) O FLYNN RILEY (51)

For other similar examples, you may want to check out Teach Yourself Perl in 21 Days: Day 10 (img.pl). That example shows a decent (but not comprehensive) way to extract attributes from HTML tags.

Hope this helps.