You can do this using known Perl
modules like :
LWP
WWW::Mechanize
HTML::TreeBuilder
HTML::TreeBuilder::XPath
All are on http://search.cpan.org
The last Perl module is really usefull, you can use Xpath
expressions like :
//table[0]/tr[3]/td[2]/text()
by example, to print the text of the second td
element in the third tr
from the first table
.