use CGI qw(:standard); $foo->list_params($CGI::Q);