From: Chad Perrin Date: 2007-03-21T05:31:26+09:00 Subject: Re: array to hash On Tue, Mar 20, 2007 at 08:33:09PM +0900, Servando Garcia wrote: > > >
Hello all
>
    Is there a method to collect the items in an array into a hash
>
 
>
I want to go from this X =[1,2,3,4,5,6] to this Y={1 =>2, 3 =>4, 5 =>6}
>
 
>
Just seems like there should be one
>
 
>
Thanks in advance
>
 
>
Sam
> > I'm glad you got the answer you were seeking. I have a request, though: Please provide plain text email content in the future. Some of us (intentionally) avoid HTML email. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] unix virus: If you're using a unixlike OS, please forward this to 20 others and erase your system partition.