my %grid; keys %grid= 11*11; # preallocate our hash size for my $x(-5..5) { for my $y(-5..5) { $grid{$x,$y} = "co-ords x:$x, y:$y"; } }