Hi In-Suk:

How about:

$c = $a->dice(X,$b);

?

Regards,

   Doug Hunt

[EMAIL PROTECTED]
Software Engineer III
UCAR - COSMIC, Tel. (303) 497-2611

On Fri, 31 Oct 2008, IN SUK JOUNG wrote:

> Hello,
> This might be an easy question for you but I don't have a clue.
>
> What I want to do is,
>
> $a = sequence(30)->reshape(3,10);
> $b = pdl [ 1, 3, 5 ];
>
> $c = ## Something goes here ##
>
> I want $c to be pdl [ [3,4,5], [9,10,11], [15,16,17] ].
>
> Is there a way to have $c by manipulating $a and $b?
>
> -- 
> Best,
> In-Suk Joung
>

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

Reply via email to