<?xml version="1.0" encoding="windows-1252"?>
<node id="1004453" title="Re^2: Append to hash reference" created="2012-11-18 14:15:07" updated="2012-11-18 14:15:07">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
&lt;p&gt;Or...&lt;/p&gt;

&lt;code&gt;
use Data::Dumper;

my $ref1 = { foo =&gt; 1, bar  =&gt; 2 };
my $ref2 = { baz =&gt; 3, quux =&gt; 4 };

# Use a hash slice to override values from the first hash with the second hash
@$ref1{ keys %$ref2 } = values %$ref2;
&lt;/code&gt;</field>
<field name="root_node">
1004433</field>
<field name="parent_node">
1004434</field>
<field name="reputation">
9</field>
</data>
</node>
