in reply to How to create nesting hashes given the innermost value and an array of keys?

Why do it so complicated?
%hash = map{($_, $value)} @array;

Originally posted as a Categorized Answer.