package MyProgram; sub handler { CGI::initialize_globals(); # unneeded if using CGI->new ... # CGI program here }