To get the content of the URLs that you find, use the
LWP module. It has a routine that takes the URL as
an argument. This routine returns the contents of the URL
as a string.
For a complete LWP example read the pod on LWP
or see the "Simple LWP Example" section of the
LWP Quick Reference Guide.