|
|
| "be consistent" | |
| PerlMonks |
1 line array to hash converterby rossta (Initiate) |
| on Sep 21, 2001 at 14:33 UTC ( [id://113879]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.rossta has asked for the wisdom of the Perl Monks concerning the following question:
I have an array of numbers, and an empty hash:
I remember a one liner, that would populate the keys of the hash with the elements of the array, but now it escapes me (age?). I seem to remember it was something like: But that doesn't work. Any ideas?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||