$cgi = CGI::self_or_default if $cgi and ! ( defined $cgi and ref $cgi );