summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1997-11-09 03:15:06 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1997-11-09 03:15:06 +0000
commitb8e3bfaf565265c3b1c2de26f555b1f4f05daacc (patch)
treef6f16db74370ebad7418310eca9a41f3e9ca5c1a /pp_sys.c
parent249cec02fed5443387beac307c539cba65b49a75 (diff)
downloadperl-b8e3bfaf565265c3b1c2de26f555b1f4f05daacc.tar.gz
Fix 'anydbm.t' - if the gv is passed 1st call to inherited
TIEHASH works, but 2nd call (after db is closed, attempt to reopen) tries to AUTOLOAD TIEHASH rather than using cached value. p4raw-id: //depot/ansiperl@216
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 39cc4e26ba..16eff4c022 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -503,6 +503,7 @@ PP(pp_binmode)
}
+
PP(pp_tie)
{
djSP;
@@ -556,7 +557,7 @@ PP(pp_tie)
CATCH_SET(oldcatch);
#else
ENTER;
- perl_call_sv((SV*)gv, G_SCALAR);
+ perl_call_sv((SV*)GvCV(gv), G_SCALAR);
SPAGAIN;
#endif
sv = TOPs;