#!/usr/local/bin/perl use strict; use warnings; use Data::Dumper; use HTML::TableExtract; use WWW::Mechanize; $Data::Dumper::Indent = 1; my $url = "http://www.sailwx.info/shiptrack/cruiseships.phtml"; my $m = WWW::Mechanize->new(); $m->get($url); die unless $m->success; my $input = $m->content; my $te = HTML::TableExtract->new( headers => [qw(Ship position)] ) or die qq{$!}; $te->parse($input); foreach my $row ($te->rows) { print Dumper($row); }