use LWP::Simple; #get ZIP file and store it locally as 'download.zip' getstore('http://localhost/testfile.zip', 'download.zip' ); #print HTML file to STDOUT my $content = get('http://localhost/dbconnect/instructions.htm'); if (defined $content) { # it worked! print $content,"\n"; } else { # there was a problem! warn 'Failed getting HTML file' }