%hash = ( "1" => { 'a'=>'b', 'b'=>'c' }, "2" => { 'c'=>'d', 'd'=>'e' }, "3" => { 'e'=>'f', 'f'=>'g' } ); print $hash{2}{d}; #result e