The error indicates that $content
is undef. Perhaps you need to configure LWP to use a proxy?
The following excerpt is from the lwpcook POD:
$ua = LWP::UserAgent->new;
$ua->env_proxy; # initialize from environment variables
$ua->proxy(ftp => 'http://proxy.myorg.com');
$ua->proxy(wais => 'http://proxy.myorg.com');
$ua->no_proxy(qw(no se fi));
my $req = HTTP::Request->new(GET => 'wais://xxx.com/');
(Update: added excerpt from lwpcook)
May the Source be with you.
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.