Keep It Simple, Stupid | |
PerlMonks |
Re: better array to hash conversionby clueless newbie (Curate) |
on Dec 11, 2012 at 12:23 UTC ( [id://1008290]=note: print w/replies, xml ) | Need Help?? |
@hash{@array}=(0..$#hash};
Should really read @hash{@array}=(0..$#array}; Thanks for the catch, perltux!
In Section
Seekers of Perl Wisdom
|
|