On Sun, 10 Jun 2001, Sam Tregar wrote: > On Sun, 10 Jun 2001, Me wrote: > > > Agreed. So long as you are talking about Perl 5's arrays. > > > > I disagree, if you are talking about 2 dimensional structures. > > You appear to have some fundamental misunderstanding about Perl 5. Perl 5 > does indeed support multidimentional arrays: > > my @matrix = ( [ 1 2 3 ] > [ 4 5 6 ] > [ 7 8 9 ] ); > print $matrix[1][2]; > > You could easily use either "tie" or the new "->[]" overloading in Perl 5 > to access relational databases in Perl 5. Are you going to make me show > you an example before you believe me? > At the risk of receiving a flame perl5 does not have multi-dimensional arrays. It has something that will do the job with a massive memory overhead ands lots of pain when dimensionality is high. If it had true support for N-dim arrays then PDL would never have been invented. The main problem PDL has is that Perl does not have a syntax for N-dim slices so it has to bolt something on the side by specifying a slice as a string. (see eg PDL::Slices). Numerical applications will get a significant boost if N-dim arrays with native slicing are possible in perl6. -- Tim Jenness JAC software http://www.jach.hawaii.edu/~timjThread Previous | Thread Next