use strict; use LWP::Simple qw/getstore/; my $site = getstore('http://www.google.com', 'test.html'); # Or you could store the content in a scalar, with: # my $content = get('http://www.google.com');