use strict; use warnings; my %hash; $hash{a} = 'bob'; $hash{b} = 'mary'; $hash{a}[0] = 1;