Ingo - Craig discussed this recently, though I cannot find the thread. The problem is that the general threading rules are very generic, so this is one of those situations where consistency in the threading engine leads to weird behavior. A simple example is here:
pdl> $x = ones(5) pdl> $y = sequence(5,4) pdl> $x .= $y pdl p $x [15 16 17 18 19] Bear in mind that if I'm assigning $x to $y, this would DWIM, but the inverse is only confusing. Craig, do you remember the email in which you discussed this? David On Mon, Jan 30, 2012 at 8:20 AM, Ingo Schmid <[email protected]> wrote: > when adding ;-, mv(-1,1) in the += statement, I get the expected result. > > If the sloppy code is not expected to work, please barf, but do not > continue with nonsense! > > Cheers > Ingo > > pdl> $x=zeroes(4,5,3,2,3,10) > pdl> $y=floor random(4,10)*20 > $x(,0,0,0,0,)+=$y > > pdl> p $y > > [ > [ 4 7 3 16] > [ 0 9 8 4] > [15 10 10 6] > [17 4 19 10] > [15 3 0 6] > [13 13 6 3] > [ 8 6 13 4] > [ 4 13 15 11] > [ 0 6 18 3] > [15 10 6 18] > ] > pdl> p $x(,0,0,0,0,;-) > > [ > [91 81 98 81] > [91 81 98 81] > [91 81 98 81] > [91 81 98 81] > [91 81 98 81] > [91 81 98 81] > [91 81 98 81] > [91 81 98 81] > [91 81 98 81] > [91 81 98 81] > ] > > > _______________________________________________ > Perldl mailing list > [email protected] > http://mailman.jach.hawaii.edu/mailman/listinfo/perldl > > -- Sent via my carrier pigeon.
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
