How can I read the URL parameter in a Perl CGI program?
It's recommended that you use a URL parser such as mentioned by ysth, but if you REALLY want the raw input, it's available through the following:
for GET:
$contents = $ENV{'QUERY_STRING'};
for POST:
$contents = ;