I haven't used LWP, but I do know that HTML::LinkExtor
works fairly well for extracting links. You can read about it on CPAN.
It's a good way to easily get just the urls from a page.
Of course, depending on what you want to do with the urls that you get, you might be better off with LWP.
good luck!
-- cat