in reply to Tie, DBM's, HoH and Sparse Keys
sub { my ($hashref, $key) = @_; my %hash; tie %hash, ....; $hashref->{$key} = \%hash; } [download]