in reply to Assigning data to a nested hash with a variable number of levels?
This node (and its follow-ups) may be of interest. And this one.
the lowliest monk