)
Changed paths:
M S04-control.pod
Log Message:
---
Prevent some confusion re a b c
Peter Scott [EMAIL PROTECTED] writes:
@a = @b || @c should 'work'. In P5 it puts @b in scalar context and
thus evaluates as the number of elements in @b if there are any.
Define 'work'.
if (@b) { @a = @b } else { @a = @c }
$a[$_] = $b[$_] || $c[$_] foreach (0..max(@a,@b,@c))
...other
@a = @b || @c should 'work'. In P5 it puts @b in scalar context and thus
evaluates as the number of elements in @b if there are any.
This one is so tiny, I feel like it should be grouped with something else
before it's big enough for an RFC... what do people think? Is it part of a
larger