- or download this
use strict;
use Data::Dumper;
...
$x = { %$x, %$y };
print Dumper($x);
- or download this
$VAR1 = { 'c' => 3,
'a' => 1,
...
'bbb' => 11
}
};
- or download this
use Hash-Dumper qw/merge/;
- or download this
$x = { %$x, %$y };
- or download this
$x = merge( $x, $y );
- or download this
$VAR1 = {
'c' => 3,
...
'aaa' => 11
}
};