summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-05-04 14:37:04 +0100
committerDavid Mitchell <davem@iabyn.com>2010-05-04 14:45:54 +0100
commit191ad7eff570fc96c93993e4358f83e2033365d6 (patch)
tree84d1be60e8b381f8d501df4ebfdff755bea613f9 /mg.c
parent5afa72af5aa99c40932771ad390abf5ba229611b (diff)
downloadperl-191ad7eff570fc96c93993e4358f83e2033365d6.tar.gz
make 'local $tied' untied
When localising a tied scalar, don't make the scalar tied
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index ccb5b82117..7c7c03ea30 100644
--- a/mg.c
+++ b/mg.c
@@ -179,6 +179,7 @@ S_is_container_magic(const MAGIC *mg)
case PERL_MAGIC_rhash:
case PERL_MAGIC_symtab:
case PERL_MAGIC_tied: /* treat as value, so 'local @tied' isn't tied */
+ case PERL_MAGIC_tiedscalar: /* so 'local $scalar' isn't tied */
return 0;
default:
return 1;