This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The last parameter to gv_stashpv/gv_stashpvn/gv_stashsv is a bitmask
[perl5.git] / op.c
diff --git a/op.c b/op.c
index 6a0fa66..5d78580 100644 (file)
--- a/op.c
+++ b/op.c
@@ -3492,7 +3492,7 @@ Perl_package(pTHX_ OP *o)
     save_item(PL_curstname);
 
     name = SvPV_const(cSVOPo->op_sv, len);
-    PL_curstash = gv_stashpvn(name, len, TRUE);
+    PL_curstash = gv_stashpvn(name, len, GV_ADD);
     sv_setpvn(PL_curstname, name, len);
 
     PL_hints |= HINT_BLOCK_SCOPE;