|
|
| Keep It Simple, Stupid | |
| PerlMonks |
How to create hash out of an array elements?by jojojo (Initiate) |
| on Nov 17, 2011 at 08:38 UTC ( #938540=perlquestion: print w/ replies, xml ) | Need Help?? |
|
jojojo has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, Im new to PERL and thus stuck with something. I have an array which contains two elements. I want to create a hash such that the first element is the key for the second element. How do I do that? I tried a few things but nothing seems to be working.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||