HV *const hv_tie = newHV();
SV *tie = newRV_noinc((SV*)hv_tie);
- sv_bless(tie, gv_stashsv(stashname,GV_ADD));
- hv_magic(hv, (GV*)tie, PERL_MAGIC_tied);
+ sv_bless(tie, gv_stashsv(stashname, GV_ADD));
+ hv_magic(hv, (GV*)tie, PERL_MAGIC_tied);
sv_magic((SV*)av, (plus ? (SV*)av : NULL), PERL_MAGIC_regdata, NULL, 0);
sv_magic(GvSVn(gv), (SV*)gv, PERL_MAGIC_sv, name, len);
SvREADONLY_on(GvSVn(gv));
else
Perl_hv_store(aTHX_ hv_tie, STR_WITH_LEN("all"), newSViv(1), 0);
-
+
SvREADONLY_on(hv);
SvREADONLY_on(tie);
SvREADONLY_on(av);
-
- if (sv_type == SVt_PVHV)
- require_tie_mod(gv, name, stashname, "FETCH", 0);
- else
- SvREFCNT_dec(stashname);
+
+ require_tie_mod(gv, name, stashname, "FETCH", 0);
break;
}
unwrap(\@entry,3+$off,$m) ;
print( (' ' x $off) . ")\n" );
}
- if ($key eq '-') { eval { require re::Tie::Hash::NamedCapture } }
if ($key ne "main::" && $key ne "DB::" && %entry
&& ($dumpPackages or $key !~ /::$/)
&& ($key !~ /^_</ or $dumpDBFiles)
(void) get_av("main::F", TRUE | GV_ADDMULTI);
}
/* touch @- and @+ arrays to prevent spurious warnings 20020415 MJD */
- (void) get_av("main::-", TRUE | GV_ADDMULTI);
- (void) get_av("main::+", TRUE | GV_ADDMULTI);
+ /* (but don't load the glob, since that requires loading
+ * re::Tie::Hash::NamedCapture, and miniperl can't do that */
+ (void) hv_fetch(PL_defstash, "-", 1, GV_ADDMULTI);
+ (void) hv_fetch(PL_defstash, "+", 1, GV_ADDMULTI);
}
STATIC void