in reply to references troubles
$href->{name} = $value; [download]
Finally, you can omit all the -> except the first one:
$href->{name}{subkey} [download]