Hi Teddy,
if you know about the structure of the html page you should
try the functions of HTML:TokeParser package.
For your example:
> After downloading an HTML page, what modules can I use to read the cell 4
> from the fifth row of a table, if that table is placed in another table in
> the cell 2 of the row 3?
require HTML::TokeParser;
$p = HTML::TokeParser->new($filename);
$p->get_tag('table'); #outer table
$p->get_tag('table'); #inner table
for ($i = 0; $i < 5; $i++) { #go to row 5
$p->get_tag('tr');
}
for ($i = 0; $i < 4; $i++) { #go to cell 4
$p->get_tag('td');
}
$data = $p->get_text; #get the text content of the cell
You'll find more information at the TokeParser manpage, e.g. here:
http://perlhelp.web.cern.ch/PerlHelp/site/lib/HTML/TokeParser.html
Cheers,
Carsten.