summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-19 12:17:18 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-19 12:17:18 +0000
commitd116c547427fb631beb1664235978ae153bc51e3 (patch)
treef1a875c8bf7331a491cbfbc8b554ea052189f31b /pp.c
parent1cd8295263661419654a2a8f37669ea8c62d3024 (diff)
downloadperl-d116c547427fb631beb1664235978ae153bc51e3.tar.gz
Make prototype("CORE::mkdir") work. That's a special case,
since from the OA_* flags we can't figure out which parameter is going to default to $_. p4raw-id: //depot/perl@29051
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index ba012232cc..beee803b66 100644
--- a/pp.c
+++ b/pp.c
@@ -399,6 +399,10 @@ PP(pp_prototype)
if (code == -KEY_chop || code == -KEY_chomp
|| code == -KEY_exec || code == -KEY_system || code == -KEY_err)
goto set;
+ if (code == -KEY_mkdir) {
+ ret = sv_2mortal(newSVpvs("_;$"));
+ goto set;
+ }
while (i < MAXO) { /* The slow way. */
if (strEQ(s + 6, PL_op_name[i])
|| strEQ(s + 6, PL_op_desc[i]))