my %hash; #Tried these things #$hash{test} = 'test'; #$hash{test} = 1; push @{$hash{test}}, 1, 2; use Data::Dumper; print Dumper \%hash;