use Test::More 'no_plan'; use_ok('CGI'); ok(! defined *::param{CODE}, '¶m is not exported to our namespace'); # in another test file, verifying that you can import: # (though in this example you can run these in one test file) use_ok('CGI', ':standard') or die; can_ok(__PACKAGE__, 'param'); # or, if you prefer symmetry with the "not exported" test: ok(defined *::param{CODE}, '¶m is exported to namespace');