diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-04-30 19:03:34 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-04-30 19:03:34 +0000 |
commit | 045ac3170cd33a7002e5d26e4859e94ca400926d (patch) | |
tree | bf481b2a683c7ccbf658d60a50623597b094923e /scope.c | |
parent | e8c86ba6ca66f86dc4c8f4de0abf70f53c2484f4 (diff) | |
download | perl-045ac3170cd33a7002e5d26e4859e94ca400926d.tar.gz |
Fix bug id 20020427.004 on %^H.
Add a regression test for %^H.
Change the sort pragma implementation to use a
global variable instead of %^H.
p4raw-id: //depot/perl@16286
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -959,6 +959,10 @@ Perl_leave_scope(pTHX_ I32 base) PL_op = (OP*)SSPOPPTR; break; case SAVEt_HINTS: + if ((PL_hints & HINT_LOCALIZE_HH) && GvHV(PL_hintgv)) { + SvREFCNT_dec((SV*)GvHV(PL_hintgv)); + GvHV(PL_hintgv) = NULL; + } *(I32*)&PL_hints = (I32)SSPOPINT; break; case SAVEt_COMPPAD: |