summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorSimon Cozens <simon@netthink.co.uk>2001-04-11 14:24:35 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-11 16:53:15 +0000
commit6e97e4200e8e581173200042c4e5ee08a8fcdd39 (patch)
treeea0db1bbd5ea65ab5874d1aee7bcee966eebcc3f /pp.c
parentdfc9d31c88a30f4d006b3adf7d368be02c27521d (diff)
downloadperl-6e97e4200e8e581173200042c4e5ee08a8fcdd39.tar.gz
prototype("CORE::recv")
Message-ID: <20010411132435.A26169@netthink.co.uk> p4raw-id: //depot/perl@9685
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index 9d96b944f5..6730f29f0c 100644
--- a/pp.c
+++ b/pp.c
@@ -448,10 +448,12 @@ PP(pp_prototype)
else if (n && str[0] == ';' && seen_question)
goto set; /* XXXX system, exec */
if ((oa & (OA_OPTIONAL - 1)) >= OA_AVREF
- && (oa & (OA_OPTIONAL - 1)) <= OA_HVREF) {
+ && (oa & (OA_OPTIONAL - 1)) <= OA_SCALARREF
+ /* But globs are already references (kinda) */
+ && (oa & (OA_OPTIONAL - 1)) != OA_FILEREF
+ ) {
str[n++] = '\\';
}
- /* What to do with R ((un)tie, tied, (sys)read, recv)? */
str[n++] = ("?$@@%&*$")[oa & (OA_OPTIONAL - 1)];
oa = oa >> 4;
}