You are missing the beauty of vector/matrix operations. The math folks
really would like to be able to describe the operation wanted and have
perl do the optimization.
Would adding another character be helpful
@result = @a x|| @b?
@result = @a ||| @b?
or perhaps a modifier?
@result = @a || @b forall;
(Blech, that just doesn read right.)
<chaim>
>>>>> "MC" == Mark Cogan <[EMAIL PROTECTED]> writes:
MC> At 05:47 PM 8/15/00 -0600, Nathan Torkington wrote:
>> Jeremy Howard writes:
>> > @result = @a || @b;
>> >
>> > Which applies '||' component-wise to elements of @a and @b, placing the
>> > result in @result.
>>
>> *Ptui* That's not how *I* want || to behave on lists/arrays.
>>
>> I want
>> @result = @a || @b;
>> to be like:
>> (@result = @a) or (@result = @b);
>>
>> That's what all my students keep expecting it to mean.
MC> Seconded.
MC> It seems obvious that @a should be the whole array @a, not an iteration
MC> over its elements. If I want to iterate over @a, I should have to do so
MC> explicitly, with a for() or map().
--
Chaim Frenkel Nonlinear Knowledge, Inc.
[EMAIL PROTECTED] +1-718-236-0183