> On Fri, 2007-11-02 at 15:05 +1300, Trevor Carey-Smith wrote:
> > There may be a more elegant way, but you could try:
> > 
> > $work($work->isbad;?) .= $original($work->isbad;?)

This uses the new PDL::NiceSlice syntax.  You'll need to
do a 'use PDL::NiceSlice' before using the new syntax for
*each file*.  Details on why in online docs.

--Chris

> I couldn't get that to work until I changed it to:
> 
>     $work->where( $work->isbad ) .= $orig->where( $work->isbad );
> 
> That's pretty nice -- I'd overlooked using an index in the lvalue.
> 
> Thanks!
> Tod
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to