summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-22 15:43:20 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-22 15:43:20 +0000
commitbb112e5a4b9e874a52fe07cda10dbc94d64316d8 (patch)
tree64d7e47a8c2ad4acdeb8bf80d8498944f4e97a63 /pp_hot.c
parent7168684c4ec9fd16f6c71a229097fb6d4325493a (diff)
downloadperl-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pp_hot.c b/pp_hot.c
index c625c2c4d4..c4cd739e15 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -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");
}
}