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...
-- Johan
- @a = @b || @c Peter Scott
- Re: @a = @b || @c Johan Vromans
- Re: @a = @b || @c Peter Scott
