in reply to Can't get back links from page

when I run it I don't get back any links.

But you get back some errors and warnings; you should fix your code.

Did I forget to copy a line of code or something?
Probably, as e.g.
my $p = HTML::LinkExtor->new(\&callback);

is passing a CODE reference of a non-existing subroutine into the method new of HTML::LinkExtor.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}