diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-24 05:05:19 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-24 05:05:19 +0000 |
commit | 288ec9e31566cfd8e9a63e1dd3d7e670d6e519b8 (patch) | |
tree | 8d03cf96cc56425fcb53e647664dddece64f300f /pp_ctl.c | |
parent | cbadcae4e4f53b8eeb2aa1dd7b4a95e1efb3b915 (diff) | |
download | perl-288ec9e31566cfd8e9a63e1dd3d7e670d6e519b8.tar.gz |
return 0 rather than "" when scalar grep has nothing to iterate
on (brings behavior in line with documentation)
p4raw-id: //depot/perl@3455
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -667,7 +667,7 @@ PP(pp_grepstart) if (PL_stack_base + *PL_markstack_ptr == SP) { (void)POPMARK; if (GIMME_V == G_SCALAR) - XPUSHs(&PL_sv_no); + XPUSHi(0); RETURNOP(PL_op->op_next->op_next); } PL_stack_sp = PL_stack_base + *PL_markstack_ptr + 1; |