Q:

Download webpage source to a string in Perl

How do I do it?
I would also like to use a proxy. How do I do that?

A:

use WWW::Mechanize;

my $mech = WWW::Mechanize->new();
$mech->get("http://foo.com/bar");
my $content = $mech->res()->content();

For the proxy, see the Mechanize FAQ.

