diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-08 18:28:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-08 18:28:13 +0000 |
commit | 91e74348ab129f737e0d9da75481cd4eb7414ba4 (patch) | |
tree | b700d3ed7ddb36fb2d15c007f31f5bd0346d8418 /ext/B | |
parent | 1426bbf4b7d39af0f80ec0afcb4869d2bc3f0a90 (diff) | |
download | perl-91e74348ab129f737e0d9da75481cd4eb7414ba4.tar.gz |
Do away with array context, from Daniel Chetlin <daniel@chetlin.com>
(either perlbug or p5p ate the original), plus regen
perlapi and perltoc.
p4raw-id: //depot/perl@6553
Diffstat (limited to 'ext/B')
-rw-r--r-- | ext/B/ramblings/flip-flop | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/B/ramblings/flip-flop b/ext/B/ramblings/flip-flop index e0cb8ff620..e08333d172 100644 --- a/ext/B/ramblings/flip-flop +++ b/ext/B/ramblings/flip-flop @@ -9,13 +9,13 @@ PP(pp_range) } pp_range is a LOGOP. -In array context, it just returns op_next. +In list context, it just returns op_next. In scalar context it checks the truth of targ and returns op_other if true, op_next if false. flip is an UNOP. It "looks after" its child which is always a pp_range LOGOP. -In array context, it just returns the child's op_other. +In list context, it just returns the child's op_other. In scalar context, there are three possible outcomes: (1) set child's targ to 1, our targ to 1 and return op_next. (2) set child's targ to 1, our targ to 0, sp-- and return child's op_other. |