my $cgi = new CGI::Applicaton(...); $::global_var = $cgi; ... use $::global_var now anywhere ...