diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-19 12:17:18 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-19 12:17:18 +0000 |
commit | d116c547427fb631beb1664235978ae153bc51e3 (patch) | |
tree | f1a875c8bf7331a491cbfbc8b554ea052189f31b /pp.c | |
parent | 1cd8295263661419654a2a8f37669ea8c62d3024 (diff) | |
download | perl-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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])) |