And if your data is in an HTML table, you can get your array in a single line of AnyData code. AnyData uses both LWP and HTML::TableExtract under the hood:
use AnyData;
my $arrayRef = adConvert(
'HTMLtable', # input is an HTML table
'http://host/path/foo.html', # input comes from a remote file
'ARRAY', # output is an Array reference
'', # output not sent to file
{count=>1} # HTML::TableExtract flags
);