<?xml version="1.0" encoding="windows-1252"?>
<node id="833139" title="Re^2: Hash of Regex" created="2010-04-06 18:19:52" updated="2010-04-06 18:19:52">
<type id="11">
note</type>
<author id="580097">
almut</author>
<data>
<field name="doctext">
&lt;blockquote&gt;
&lt;i&gt;&lt;c&gt;
$VAR1 = {
          'int' =&gt; 'float',
          'brown' =&gt; 'yellow'
        };
&lt;/c&gt;&lt;/i&gt;
&lt;/blockquote&gt;
&lt;p&gt; (note to the OP)&amp;nbsp; In case you wonder why this is: &lt;/p&gt;
&lt;c&gt;
my %dict = ( 'brown'      =&gt; 'yellow',
             /int(\d+)/   =&gt; 'int',
             /float(\d+)/ =&gt; 'float',
           );
&lt;/c&gt;
&lt;p&gt; is the same as &lt;/p&gt;
&lt;c&gt;
my %dict = ( 'brown'      =&gt; 'yellow',
             $_ =~ /int(\d+)/   =&gt; 'int',
             $_ =~ /float(\d+)/ =&gt; 'float',
           );
&lt;/c&gt;
&lt;p&gt; which (in this case) is the same as &lt;/p&gt;
&lt;c&gt;
my %dict = ( 'brown'      =&gt; 'yellow',
             () =&gt; 'int',
             () =&gt; 'float',
           );
&lt;/c&gt;
&lt;p&gt; which is the same as &lt;/p&gt;
&lt;c&gt;
my %dict = ( 'brown'      =&gt; 'yellow',
             'int' =&gt; 'float',
           );
&lt;/c&gt;
</field>
<field name="root_node">
833133</field>
<field name="parent_node">
833135</field>
</data>
</node>
