summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-07-15 12:47:50 +0000
committerNicholas Clark <nick@ccl4.org>2004-07-15 12:47:50 +0000
commite682d7b7fae5a50c5afb147f913a4e88d7261606 (patch)
tree644c399b397737feec6637e4339926ef7c874e65 /pp_ctl.c
parentd46f46af75970be4ecf8811cc8d1ad9bcd7df36c (diff)
downloadperl-e682d7b7fae5a50c5afb147f913a4e88d7261606.tar.gz
for (reverse @foo) now iterates in reverse in place.
p4raw-id: //depot/perl@23115
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 1107ad9461..0c1067a559 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1811,7 +1811,7 @@ PP(pp_enteriter)
}
}
else if (PL_op->op_private & OPpITER_REVERSED) {
- cx->blk_loop.itermax = 0;
+ cx->blk_loop.itermax = -1;
cx->blk_loop.iterix = AvFILL(cx->blk_loop.iterary);
}