declared in the export specification. Ensure that the test actually
tests this.
p4raw-id: //depot/perl@30529
}
# Can't use Test::Simple/More, they depend on Exporter.
-my $test = 1;
+my $test;
sub ok ($;$) {
my($ok, $name) = @_;
}
-print "1..28\n";
-require Exporter;
-ok( 1, 'Exporter compiled' );
+BEGIN {
+ $test = 1;
+ print "1..28\n";
+ require Exporter;
+ ok( 1, 'Exporter compiled' );
+}
BEGIN {
(*{"${callpkg}::$sym"} = \&{"${pkg}::$sym"}, next)
unless $sym =~ s/^(\W)//;
$type = $1;
+ no warnings 'once';
*{"${callpkg}::$sym"} =
$type eq '&' ? \&{"${pkg}::$sym"} :
$type eq '$' ? \${"${pkg}::$sym"} :