This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Create proper Cygwin $ENV{PATH} in test.pl
[perl5.git] / sv.c
diff --git a/sv.c b/sv.c
index 57db4f4..3d5dc68 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -13695,7 +13695,7 @@ S_find_uninit_var(pTHX_ const OP *const obase, const SV *const uninit_sv,
 
     case OP_GVSV:
        gv = cGVOPx_gv(obase);
-       if (!gv || (match && GvSV(gv) != uninit_sv))
+       if (!gv || (match && GvSV(gv) != uninit_sv) || !GvSTASH(gv))
            break;
        return varname(gv, '$', 0, NULL, 0, FUV_SUBSCRIPT_NONE);