Saurabh,
If you really must break up a 2-D PDL into nested perl5 lists, do this:
@a = map {dog $_]} dog $pdl;
More dimensions may be accommodated by nesting the loop deeper.
Cheers,
Craig
On May 25, 2007, at 9:39 AM, Saurabh Singhvi wrote:
Thanks Doug, that will do too. If a 2D is possible, it'll just be
nicer to have.
regards
Saurabh
On 5/25/07, Doug Hunt < [EMAIL PROTECTED]> wrote:
Saurabh: Try the 'list' function:
$pdl->list or list($pdl)
This returns a list, but it flattens it into 1D.
Regards,
Doug Hunt
[EMAIL PROTECTED]
Software Engineer III
UCAR - COSMIC, Tel. (303) 497-2611
On Fri, 25 May 2007, Saurabh Singhvi wrote:
> Hi all,
>
> is it possible a 2D Matrix to be returned as an array ??
> I found the sclr function but it clearly isn't supposed to
> do this.
>
> thanks
> Saurabh
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl