|
|
| P is for Practical | |
| PerlMonks |
Re: better array to hash conversionby Anonymous Monk |
| on Dec 11, 2012 at 12:23 UTC ( #1008289=note: print w/ replies, xml ) | Need Help?? |
|
The following code does this, but I wonder if there is a more elegant and/or efficient way of doing this? Really? What search terms did you use to look? Did you benchmark? my %hash; @hash{ @array } = 0 .. $#array;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||