On Nov 9, 4:09 pm, [EMAIL PROTECTED] (Beginner) wrote: > On 9 Nov 2007 at 16:35, Jenda Krynicky wrote: > > What I was attempting was to have each key to be assigned the > coresponding items from the array. So it might look like something > like:
Right, so your question has nothing to do with hash slices. Learning to break down your problem is and important skill in programming. What you seek is a way swap (transpose) the axes of a list of array references. ie. you want the list ([1,2],[3,4],[5,6]) to become ([1,3,5],[2,4,6]) There's no built-in way to do that but I'm prepared to bet there are several modules on CPAN that provide this (I just don't seem to be able to find them right now). I have a strange feeling there is a way to do this in Perl6. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/