for ($anonhash) { $_->{$name} = 'dave'; $_->{$city} = 'San Francisco'; # etc }