summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-05-13 08:30:25 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-06-11 11:16:45 -0700
commit8bb5f78688d9af260b13d9c9ba5dd28f01f846ec (patch)
treeac70ba48b393df4dab8ecd63d340b6212ce101c2 /pp_sys.c
parent4be76e1f2b4f53b080616615372a4ebaff876c87 (diff)
downloadperl-8bb5f78688d9af260b13d9c9ba5dd28f01f846ec.tar.gz
Revert "Revert "[perl #77688] tie $scalar can tie a handle""
This reverts commit 7850f4d6b732ab5f426cd3bcd9757c70a46cfda1.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index a45a8c2da4..31c6ea81c6 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -836,7 +836,7 @@ PP(pp_tie)
break;
case SVt_PVGV:
case SVt_PVLV:
- if (isGV_with_GP(varsv)) {
+ if (isGV_with_GP(varsv) && !SvFAKE(varsv)) {
methname = "TIEHANDLE";
how = PERL_MAGIC_tiedscalar;
/* For tied filehandles, we apply tiedscalar magic to the IO