in reply to Merging arrays into a hash

Use hash slices (briefly mentioned in perldata, but you can probably find more by searching PM for details:
my %hash; @hash{ @array2 } = @array1;

Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: Merging arrays into a hash
by pazuzu (Initiate) on Jun 15, 2001 at 16:08 UTC
    Thanks for your replies, I didn't think I would get so many answers so fast! I hope I will soon be able to answer some questions myself and so help other newbies like myself out... Cheers, Paz