summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/doop.c b/doop.c
index f16ec6471f..f1392ff9e5 100644
--- a/doop.c
+++ b/doop.c
@@ -667,6 +667,9 @@ dARGS
(void)hv_iterinit(hv); /* always reset iterator regardless */
+ if (op->op_private & OPpLEAVE_VOID)
+ RETURN;
+
if (GIMME != G_ARRAY) {
I32 i;
dTARGET;