diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-01-04 09:48:27 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-01-04 10:30:27 +0000 |
commit | c18cfae2d470ffd0cd27b5d8c8fcb54221803f6c (patch) | |
tree | 1589466a76a3207013fdb6a41040fb7db13dea38 /pp_sys.c | |
parent | 0b5e625bc99f5cb78697faf03b297b6cacadf60b (diff) | |
download | perl-c18cfae2d470ffd0cd27b5d8c8fcb54221803f6c.tar.gz |
Converge the implementation of tied OPEN with PRINTF, READ and WRITE.
Consistency will make it easier to refactor.
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -536,8 +536,8 @@ PP(pp_open) if (mg) { /* Method's args are same as ours ... */ /* ... except handle is replaced by the object */ - *MARK-- = SvTIED_obj(MUTABLE_SV(io), mg); - PUSHMARK(MARK); + PUSHMARK(MARK - 1); + *MARK = SvTIED_obj(MUTABLE_SV(io), mg); PUTBACK; ENTER_with_name("call_OPEN"); call_method("OPEN", G_SCALAR); |