Any particular reason why this doesn't return anything? It also prints no errors either.
#!/usr/bin/perl
use strict;
use warnings;
use IO::Socket;
my $socket = IO::Socket::INET->new(
PeerAddr => 'www.google.com',
PeerPort => 'http(80)',
Proto => 'tcp',
) or die 'Unable to get site';
print $socket "GET / HTTP/1.1";
Don't really have anything else for you, sorry.