http://www.perlmonks.org?node_id=1007876


in reply to Re^4: variable as hash name
in thread variable as hash name

Because these 'groups' names ( that I want to use as hash names ) will also come from a external file.

Exactly, they can all go into a hash, you can have

$hashref->{group1}{dogs}{fido}{breed}='doberman'; $hashref->{group1}{dogs}{fido}{age}=12; $hashref->{group11}{humans}{larry}{age}= undef; ...
or anything -- should really read varvarname