Ah, beat me to it. reshape is another (and more general) option.

David


On Sat, Jan 5, 2013 at 7:40 PM, MARK BAKER <[email protected]> wrote:

> found it
>
> $m = zeros(4);
> $m->splitdim(0,2);
>
> :}
>
>
>   ------------------------------
> *From:* MARK BAKER <[email protected]>
> *To:* "[email protected]" <[email protected]>
> *Sent:* Saturday, January 5, 2013 5:31 PM
> *Subject:* PDL mutate
>
> Hey all
>
> I have been trying to figure out how to do this
>
> [ 0 0 0 0 ]
>
> and change it to this
>
> [ 0 0 ]
> [ 0 0 ]
>
> I have looked at reorder  and  bunch of other stuff, yet I cant figure out
> how to do this...
>
> Thank you for your help.
>
> -Mark
>
> "sometimes I think perl is alive "
>
>
>
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>
>


-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to