# This gets me a hash... my %x = map { $_ + 1 => (qw/Jan Feb .../)[$_] } 0 .. 11; # ...but this does not get me a hashref :-\ my $x = \%{ map { $_ + 1 => (qw/Jan Feb .../)[$_] } 0 .. 11 };