4 if( $ENV{PERL_CORE} ) {
11 # Functions exported by FileCache;
12 @funcs = qw[cacheout cacheout_close];
19 # Test 6: Test that exporting both works to package main and
20 # other packages. Now using Exporter.
22 # First, we shouldn't be able to have these in our namespace
23 # Add them to BEGIN so the later 'use' doesn't influence this
28 print 'not ' if __PACKAGE__->can($f);
33 # With an empty import list, we also shouldn't have them in
35 # Add them to BEGIN so the later 'use' doesn't influence this
41 print 'not ' if __PACKAGE__->can($f);
47 # Now, we use FileCache in 'main'
51 print 'not ' if !__PACKAGE__->can($f);
56 # Now we use them in another package
59 for my $f (@main::funcs) {
61 print 'not ' if !__PACKAGE__->can($f);
62 print "ok $main::i\n";