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