DEVFYI - Developer Resource - FYI

What is the easiest way to download the contents of a URL with Perl?

Perl Questions and Answers


(Continued from previous question...)

What is the easiest way to download the contents of a URL with Perl?

Once you have the libwww-perl library, LWP.pm installed, the code is this:
#!/usr/bin/perl
use LWP::Simple;
$url = get 'http://www.websitename.com/';

(Continued on next question...)

Other Interview Questions