On Wed, Nov 11, 2009 at 5:36 PM, Matthew Kenworthy
<[email protected]> wrote:
>> Hmm, it does not seem to work for me:
>>
>
> Yes, you're right! It was my mistake.
>
> $b = transpose($a);
>
> perldl> $b .= $b->rotate(1)
>
> perldl> p $a
>
> [
>  [0 0 0]
>  [0 0 0]
>  [0 1 0]
> ]
>
> Sorry for the confusion.
>

no confusion, just old PDL.

so I tried it on 2.4.5 and works for me as well but I don't understand it.
Can someone please point me to an explanation of what .= means in PDLish ?

It certainly is not concatenation as in standard perl.
Is there a page with the list of operator overrides?

Gabor

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to