<?xml version="1.0" encoding="windows-1252"?>
<node id="977605" title="Re: Initialize an hash with string" created="2012-06-21 05:41:31" updated="2012-06-21 05:41:31">
<type id="11">
note</type>
<author id="888573">
Eliya</author>
<data>
<field name="doctext">
&lt;blockquote&gt;
&lt;i&gt;&lt;c&gt;
my %inp = (
    KEY1 =&gt; 'VALUE1',
    KEY2 =&gt; {
        'VALUE 21',
        'VALUE 22',
        'VALUE 23'
    }
)
&lt;/c&gt;&lt;/i&gt;
&lt;/blockquote&gt;
&lt;p&gt; Note that hashes hold key-value &lt;i&gt;pairs&lt;/i&gt;, i.e. the above structure would be more like &lt;/p&gt;
&lt;c&gt;
my %inp = (
    KEY1 =&gt; 'VALUE1',
    KEY2 =&gt; {
        'VALUE 21' =&gt; 'VALUE 22',
        'VALUE 23' =&gt; undef
    }
)
&lt;/c&gt;
&lt;p&gt; Not sure if that's what you want.&amp;nbsp; Maybe you rather want an array(ref) (i.e. &lt;c&gt;KEY2 =&gt;  [ ... ]&lt;/c&gt;) here? &lt;/p&gt;</field>
<field name="root_node">
977602</field>
<field name="parent_node">
977602</field>
</data>
</node>
