Perl URL FAQ: What is the easiest way to download the contents of a URL with Perl?
The easiest way I know to download the contents of a URL (i.e., "http://...") using Perl is to use the libwww-perl library, LWP.pm.
Once you have that Perl module installed, the code to download a URL looks like this: