On Tue, 29 Oct 2002, Austin Hastings wrote: > Any of you OO guys know of a case where > > $a = $a + $b; # @A [+]= @B; --> @A = @A [+] @B; > > and > > $a += $b; # @A [+=] @B; > > should be different?
They are different in the "scalar [op] list" case, as explained here: <http://archive.develooper.com/perl6-language%40perl.org/msg10961.html> ($a = 0) [+=] @b; # sum ($a = 1) [*=] @b; # product ($a ='') [~=] @b; # cat ~ John Williams