in reply to Loading A Site Into An Array

First you need to get the web page. Use LWP::Simple or LWP::UserAgent for that.

Then you need to extract the links. You can use the solution from the FAQ, How do I extract URLs?, or you can use HTML::LinkExtor, a subclass of HTML::Parser which extracts links.

The docs for HTML::LinkExtor contain an example of pretty much exactly what you're looking for.