diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-21 09:04:54 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-21 09:04:54 +0000 |
commit | 98625aca47f1370710f55766e9a01234de61ed78 (patch) | |
tree | 4182c4c4817244f719b597f77557fe46851a092b /pp_ctl.c | |
parent | 51ce55291bc7d910929bee20dfbf29b2ba1a396f (diff) | |
download | perl-98625aca47f1370710f55766e9a01234de61ed78.tar.gz |
Change the wantarray result from caller from IV to bool for the SCALAR/
ARRAY case. This doesn't contradict the documentation, as there isn't
any. Oops.
p4raw-id: //depot/perl@33022
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1669,7 +1669,7 @@ PP(pp_caller) if (gimme == G_VOID) PUSHs(&PL_sv_undef); else - mPUSHi(gimme & G_ARRAY); + PUSHs(boolSV((gimme & G_WANT) == G_ARRAY)); if (CxTYPE(cx) == CXt_EVAL) { /* eval STRING */ if (cx->blk_eval.old_op_type == OP_ENTEREVAL) { |