http://www.perlmonks.org?node_id=1008292


in reply to Re: better array to hash conversion
in thread better array to hash conversion

I did do searches for "array to hash conversion" but all results came up with examples that use 'map' and did not seem to work for my specific conversion (the array values becoming the keys and the array index numbers becoming the values).

Sorry for asking what might look like a dumb question to an expert, but my Perl skills are still limited.

Anyway, thanks for your reply and thanks to everybody else who replied, too!

Replies are listed 'Best First'.
Re^3: better array to hash conversion
by Anonymous Monk on Dec 11, 2012 at 13:11 UTC

    Sorry for asking what might look like a dumb question to an expert, but my Perl skills are still limited.

    :) My intent was not to admonish, I was interested to know your search terms (you should share them if you searched) as this topic can be hard to find.

    I tried a bunch variations, I even resorted to ?node_id=3989;BIT=benchmark%20hash%7B, closest I found was Array to Hash, Using map to create a hash/bag from an array -- not your case exactly, but seems to cover all available syntax -- you could adapt it