Front page | perl.perl6.language |
Postings from October 2001
Re: reduce via ^
Thread Previous
|
Thread Next
From:
Bart Lateur
Date:
October 10, 2001 14:40
Subject:
Re: reduce via ^
Message ID:
b0g9stgelknoglipsp2g6tamh27doh94rn@4ax.com
On Wed, 10 Oct 2001 14:23:33 -0700, Colin Meyer wrote:
>> > Does this mean that
>> >
>> > @a ^+= @b;
>> >
>> > will add every value of @b to every value of @a?
>What I'd expect is more like:
>
> foreach my $elem (@a) {
> $elem ^+= @b;
> }
>
If you want that effect, apply "scalar" on the RHS.
--
Bart.
Thread Previous
|
Thread Next