$cgi = CGI::self_or_default if $cgi and ! ref $cgi;