use HTML::LinkExtor; use LWP::Simple; $p = HTML::LinkExtor->new(\&cb, "http://www.perl.org"); sub cb { my($tag, %links) = @_; print "$tag @{[%links]}\n"; } getstore("http://www.perl.org/", "index.html"); $p->parse_file("index.html");