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;
[download]
Dr. Michael K. Neylon -
mneylon-pm@masemware.com
|| "You've left the lens cap of your mind on again, Pinky" - The Brain
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: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
[reply]
In Section
Seekers of Perl Wisdom