use CGI; my $cgi = new CGI; my $pd; $pd = $cgi->param("pd") if $cgi->request_method() eq 'GET';