in reply to better array to hash conversion
@hash{@array}=(0..$#hash};
Should really read
@hash{@array}=(0..$#array};
Thanks for the catch, perltux!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: better array to hash conversion
by perltux (Monk) on Dec 11, 2012 at 12:48 UTC | |
by clueless newbie (Curate) on Dec 11, 2012 at 13:03 UTC |
In Section
Seekers of Perl Wisdom