use CGI; my $q = CGI->new; my $foo_content = $q->http("Foo"); # or $q->http("HTTP_FOO")