<?xml version="1.0" encoding="windows-1252"?>
<node id="442114" title="Re: Concerning hash operations (appending, concatenating)" created="2005-03-24 11:53:44" updated="2005-06-26 21:16:28">
<type id="11">
note</type>
<author id="431065">
manav</author>
<data>
<field name="doctext">
The above solutions rely on interpreting the hash in a list context, in which it returns all its key value pairs flattened out. for eg, see the below code 
&lt;code&gt;
use strict ;
use warnings ;
my %hash=('a'=&gt;'b','c'=&gt;'d') ;
my @arr=(%hash) ;
local $"="|" ;
print "@arr" ;
&lt;/code&gt;
which spews out
&lt;code&gt;
a|b|c|d
&lt;/code&gt;

Now, 
&lt;code&gt;
(%hash,'e'=&gt;'f')
&lt;/code&gt;
flattens out the key value pairs of %hash into a list. Hence it reduces to
&lt;code&gt;
('a'=&gt;'b','c'=&gt;'d','e'=&gt;'f')
&lt;/code&gt;
So on and so forth for code like
&lt;code&gt;
(%hash1,%hash2)
&lt;/code&gt;



&lt;div class="pmsig"&gt;&lt;div class="pmsig-431065"&gt;
&lt;br&gt;&lt;br&gt;Manav&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
442097</field>
<field name="parent_node">
442097</field>
</data>
</node>
