At 01:15 PM 8/6/00 +0200, Johan Vromans wrote:
>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'.

See RFC 45.

>   if (@b) { @a = @b } else { @a = @c }

That one.  Only without evaluating @b twice.

>   $a[$_] = $b[$_] || $c[$_] foreach (0..max(@a,@b,@c))

Ah - you were thinking I was thinking of some kind of array 
operation.  Nothing so advanced.


--
Peter Scott
Pacific Systems Design Technologies

Reply via email to