package Foo; use strict; require Exporter; use vars qw(@ISA @EXPORT @EXPORT_OK); @ISA = qw(Exporter); @EXPORT_OK = qw($CGI); @EXPORT = qw($CGI); use CGI; our $CGI = new CGI; die $CGI; # I tried the export stuff down here, too 1; ----- use Foo qw($CGI);