How to make a hash that has been pushed into an array independent of the "source" hash?
my %country;
my Hash @array;
%country{ 'country' } = 'France';
@array.push(%country);
%country{ 'country' } = 'Germany';
@array.push(%country);
.say for @array;
The output is:
{country => Germany}
{country => Germany}
And of course it's not what I want.