Hi,

I got an error message while using PDL(2.007, ActivePerl5.16), but don't
know
why. Here's a simplified example:

everything's ok for this code:
use PDL;
$a = sequence(5,6);
$b = $a->reorder(1,0);
$b .=0;   # $a is all zeros now.

but this code doesn't work:
use PDL;
$a = sequence(5,6);
$a->reorder(1,0) .= 0; #Can't modify non-lvalue subroutine call at - line
3, ...

But methods like ->splice(...) could be assigned to without any problem. Is
there a subset of PDL method which can't be assigned to just like reorder()?

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

Reply via email to