write page source to standard output

I'm new to PERL, but I want to take the page source and write it to a file or standard output. I used perl.org as a test website. Here is the script:

use strict;
use warnings;
use LWP::Simple;

getprint\('http://www.perl.org'\) or die 'Unable to get page';

exit 0;

When I run this, I get the following error:

"500 Can't connect to The Perl Directory - perl.org (Bad hostname 'www.perl.org') <URL:http://www.perl.org>

Bear in mind I'm a Perl newbie, so I'm sure I'm missing something basic.

thanks in advance,

This works for me:

use strict;
use warnings;
use LWP::Simple;
 
my $web = get('http://www.perl.com');
print "$web";

To write to file just:

perl thisscript.pl > /path/to/some/file.log