Why? What is the bigger picture problem you are trying to solve?
If that is the exact array you want to convert then just use the hash as specified. If the array contains something different then you haven't really given us enough information to help you. What is the rule for distinguishing between keys and values? Very likely it is easier to directly construct the hash from whatever process generates the array and not generate the array at all.
In reply to Re: Create a hash whose keys and values come from a given array
by GrandFather
in thread Create a hash whose keys and values come from a given array
by IruP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |