use strict; use warnings; my %hoh = ( pc1 => { os => "win32", user => "dave"}, pc2 => { os => "linux", user => "john"}, pc3 => { os => "win32", user => "robin"} );