diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-12-22 15:43:20 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-12-22 15:43:20 +0000 |
commit | bb112e5a4b9e874a52fe07cda10dbc94d64316d8 (patch) | |
tree | 64d7e47a8c2ad4acdeb8bf80d8498944f4e97a63 /pp_hot.c | |
parent | 7168684c4ec9fd16f6c71a229097fb6d4325493a (diff) | |
download | perl-bb112e5a4b9e874a52fe07cda10dbc94d64316d8.tar.gz |
Regression tests for proxy subroutine glob assignment.
Fix a bug (it turns out that a typeglob isn't SvOK())
Remove stray debugging code.
p4raw-id: //depot/perl@26448
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -132,7 +132,7 @@ PP(pp_sassign) if (!got_coderef && gv_type != SVt_PVGV && GIMME_V == G_VOID) { /* Is the target symbol table currently empty? */ GV *gv = gv_fetchsv(right, GV_NOINIT, SVt_PVGV); - if (!SvOK(gv)) { + if (SvTYPE(gv) != SVt_PVGV && !SvOK(gv)) { /* Good. Create a new proxy constant subroutine in the target. The gv becomes a(nother) reference to the constant. */ SV *const value = SvRV(cv); @@ -166,7 +166,6 @@ PP(pp_sassign) SvRV(cv))); SvREFCNT_dec(cv); LEAVE; - PerlIO_debug("Unwrap CV\n"); } } |