summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-06-25 22:10:36 +1000
committerTony Cook <tony@develop-help.com>2010-06-25 22:10:36 +1000
commit1db4d19556a36b5a8e8604c1e7656999ebc7732b (patch)
tree17c7bac46aea9938c486e71a821a6aae0fe2777d /pp.c
parent8af710ebc7fee929ae47793d5a0cce5362af52db (diff)
downloadperl-1db4d19556a36b5a8e8604c1e7656999ebc7732b.tar.gz
RT 75902: Add prototypes for tie() and untie() to allow overloading
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 57f1ca69a2..94965f2d8c 100644
--- a/pp.c
+++ b/pp.c
@@ -429,6 +429,14 @@ PP(pp_prototype)
ret = newSVpvs_flags("\\[@%]", SVs_TEMP);
goto set;
}
+ if (code == -KEY_tied || code == -KEY_untie) {
+ ret = newSVpvs_flags("\\[$@%*]", SVs_TEMP);
+ goto set;
+ }
+ if (code == -KEY_tie) {
+ ret = newSVpvs_flags("\\[$@%*]$@", SVs_TEMP);
+ goto set;
+ }
if (code == -KEY_readpipe) {
s = "CORE::backtick";
}