BEGIN {
chdir 't' if -d 't';
- @INC = qw(../lib);
+ require "./test.pl";
+ set_up_inc( qw(../lib) );
}
-BEGIN { require "./test.pl"; }
-
-plan( tests => 54 );
+plan( tests => 55 );
# Used to segfault (bug #15479)
fresh_perl_like(
),
"ok\n",
"[perl #128238] non-stashes in stashes";
+
+is runperl(
+ prog => '%:: = (); print *{q|::|}, qq|\n|',
+ stderr => 1,
+ ),
+ "*main::main::\n",
+ "[perl #129869] lookup %:: by name after clearing %::";