summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-21 09:04:54 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-21 09:04:54 +0000
commit98625aca47f1370710f55766e9a01234de61ed78 (patch)
tree4182c4c4817244f719b597f77557fe46851a092b /pp_ctl.c
parent51ce55291bc7d910929bee20dfbf29b2ba1a396f (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 25cd02f2cb..8bca225d90 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -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) {