On Thu, 28 Feb 2008, Derek Lamb wrote: > You can make your piddle into a Perl array using the 'list' command, if you > don't need to keep the 2d structure. > > $a = sequence(3,3); > @l = $a->list; > > Or you can make it into an array of arrays if you want to keep the 2d > structure. > > @l = ( [ $a((0))->list ], [ $a((1))->list ], [ $a((2))->list ] ); > print $l[2][0]; # prints '2'. > > If it's too long to write out by hand, you can probably devise a loop with a > 'push' call inside.
That's the sort of thing I'm after. Thank you. There seems to be no mention of this command in the FAQ. The FAQ says to raise additions on this list. I'm looking at <http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=linux&db=man&fname=/usr/share/catman/man1/PDL::FAQ.1.html> at the moment. Of course it has an item about where I should be looking for the FAQ, namely <http://pdl.perl.org/faq.html>, but I get a 404 for that. > > Derek > Thank you, Hugh _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
