%h = ( 'foo' => { 'bar' => { 'burp' => 1 } } ); [download]
Originally posted as a Categorized Question.
In reply to How to create nesting hashes given the innermost value and an array of keys? by EchoAngel