> > > $a[$i][$j][$k] or $a[$i,$j,$k] > The second one has no useful meeting, "," is just an operator which > does nothing much useful in this context. Not true, at least not in the Perl I know. :-) Here's a description of what these do in Perl just to clarify: $a[0][1][2]; # get a single multidimensional element $a[0,1,2]; # get elements 0, 1, and 2 of @a This lets you say: ($user, $home, $shell) = (getpwnam('nwiger'))[0,7,8]; Pretty cool, eh? This has been in Perl forever. -Nate
- RFC 148 (v1) Add reshape() for multi-dimensional array... Perl6 RFC Librarian
- Re: RFC 148 (v1) Add reshape() for multi-dimensio... Karl Glazebrook
- Re: RFC 148 (v1) Add reshape() for multi-dime... Nathan Wiger
- Re: RFC 148 (v1) Add reshape() for multi-... Karl Glazebrook
- Re: RFC 148 (v1) Add reshape() for mu... Nathan Wiger
- Re: RFC 148 (v1) Add reshape() f... Ariel Scolnicov
- Re: RFC 148 (v1) Add reshape() f... Daniel Chetlin
- Re: RFC 148 (v1) Add reshape... Karl Glazebrook
- Re: RFC 148 (v1) Add res... Christian Soeller
- Re: RFC 148 (v1) Add res... Karl Glazebrook
- Re: RFC 148 (v1) Add reshape() for multi-dimensio... David L. Nicol
- Re: RFC 148 (v1) Add reshape() for multi-dime... c . soeller
- Re: RFC 148 (v1) Add reshape() for multi-dime... Nathan Torkington