Skip to content

Commit

Permalink
Revert "[perl #77688] tie $scalar can tie a handle"
Browse files Browse the repository at this point in the history
This reverts commit 9aa8b00.
  • Loading branch information
Father Chrysostomos committed Dec 3, 2010
1 parent 84b9ac8 commit 7850f4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion pp_sys.c
Expand Up @@ -826,7 +826,7 @@ PP(pp_tie)
break;
case SVt_PVGV:
case SVt_PVLV:
if (isGV_with_GP(varsv) && !SvFAKE(varsv)) {
if (isGV_with_GP(varsv)) {
methname = "TIEHANDLE";
how = PERL_MAGIC_tiedscalar;
/* For tied filehandles, we apply tiedscalar magic to the IO
Expand Down
11 changes: 0 additions & 11 deletions t/op/tie.t
Expand Up @@ -953,14 +953,3 @@ print ref tied *$rin, "\n";
EXPECT
main
f
########
# tie $glob_copy vs tie *$glob_copy
sub TIESCALAR { print "TIESCALAR\n" }
sub TIEHANDLE{ print "TIEHANDLE\n" }
$f = *foo;
tie *$f, "";
tie $f, "";
EXPECT
TIEHANDLE
TIESCALAR

0 comments on commit 7850f4d

Please sign in to comment.