Syntactic Confectionery Delight | |
PerlMonks |
Creating a hash from two arraysby simeon2000 (Monk) |
on Mar 27, 2002 at 16:14 UTC ( [id://154702]=perlquestion: print w/replies, xml ) | Need Help?? |
simeon2000 has asked for the wisdom of the Perl Monks concerning the following question:
If this question is answered in a FAQ, please forgive and point me to the answer, but I couldn't find it in the Camel book.
I've got two arrays.
The end result I want is:
Is there a one/two liner to combine those two arrays into a hash? I can make a simple for loop to do it, but I'd like to do it in a one liner and impress all my friends and relatives. Anyone?
Back to
Seekers of Perl Wisdom
|
|