![]() |
|
We don't bite newbies here... much | |
PerlMonks |
1 line array to hash converterby rossta (Initiate) |
on Sep 21, 2001 at 18:33 UTC ( [id://113879]=perlquestion: print w/replies, xml ) | Need Help?? |
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
|
|