%nestedhash = { $someref => { ref => $someref, val => "STUFF", }, $anotherref => { ref => $anotherref, val => stuff(), }, }