#!/usr/bin/perl -w use strict; use LWP::Simple; my $content = get('http://www.perl.com'); #do something with the $content print $content;