in reply to
Merging arrays into a hash
You want hash slices. They're so very tasty.
my %hash; @hash{@keys} = @values;
[download]
Change the arrays to suit your needs.
japhy
--
Perl and Regex Hacker
Comment on
Re: Merging arrays into a hash
Download
Code
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
[reply]
In Section
Seekers of Perl Wisdom