in reply to Hash in a hash value

See perllol and perlreftut to begin.

A hash associates string keys with scalar values. So you can't embed a hash into another hash's value, directly. Instead, you embed a reference to a hash, since references are scalar.

A major help in learning the Perl data structures is Data::Dumper. Build a structure, dump it out to see how Perl understands it, in Perl syntax.

--
[ e d @ h a l l e y . c c ]