in reply to Merging arrays into a hash

You want hash slices. They're so very tasty.
my %hash; @hash{@keys} = @values;
Change the arrays to suit your needs.

japhy -- Perl and Regex Hacker

Replies are listed 'Best First'.
Re: Re: Merging arrays into a hash
by pazuzu (Initiate) on Jun 15, 2001 at 16:07 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