my $cgi; if ($I_want_to_use_mod_perl_modules) { $cgi = CGI::Apache2::Wrapper->new($r); } else { $cgi = CGI->new($r); }