<div dir="ltr">In Perl, once you say $a-&gt;{$b}-&gt;{$c}, $a-&gt;{$b} will &quot;spring into existence&quot;. From perlref:<div><div><br></div><div><div>           The left side of the arrow can be any expression returning a reference, including a</div>
<div>           previous dereference.  Note that $array[$x] is not the same thing as &quot;$array-&gt;[$x]&quot;</div><div>           here:</div><div><br></div><div>               $array[$x]-&gt;{&quot;foo&quot;}-&gt;[0] = &quot;January&quot;;</div>
<div><br></div><div>           This is one of the cases we mentioned earlier in which references could spring into</div><div>           existence when in an lvalue context.  Before this statement, $array[$x] may have been</div>
<div>           undefined.  If so, it&#39;s automatically defined with a hash reference so that we can look</div><div>           up &quot;{&quot;foo&quot;}&quot; in it.  Likewise &quot;$array[$x]-&gt;{&quot;foo&quot;}&quot; will automatically get defined with</div>
<div>           an array reference so that we can look up &quot;[0]&quot; in it.  This process is called</div><div>           autovivification.</div><div><br></div><div><br></div><div class="gmail_quote">On Sun, Sep 11, 2011 at 4:24 PM, Chanan Berler <span dir="ltr">&lt;<a href="mailto:bc.other@gmail.com">bc.other@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello All,<br>
<br>
        # check if result key GetUmsPlayerData found<br>
        if ( exists($result-&gt;{&#39;response&#39;}-&gt;{&#39;Player&#39;}-&gt;{&#39;GetUmsPlayerData&#39;}-&gt;{&#39;player_data&#39;})<br>
)<br>
        {<br>
#               $result-&gt;{&#39;response&#39;}-&gt;{&#39;Player&#39;}-&gt;{&#39;GetUmsPlayerData&#39;}-&gt;{&#39;player_data&#39;}<br>
= $self-&gt;_player_data_by_key_to_name_($result-&gt;{&#39;response&#39;}-&gt;{&#39;Player&#39;});<br>
        }<br>
<br>
Funny after adding this condition (see no action is done - comments)<br>
and printing using Data::Dumper i found this:<br>
<br>
Sep 11 13:18:17 <a href="http://dev-host-03.playtechtv.tv" target="_blank">dev-host-03.playtechtv.tv</a>: [pid:26150] [debug]<br>
[mixtv::payment::PlaytechUMS_base::_PARSE_RESPONSE_] response returned<br>
with error (0). system-error-code was set to 100.<br>
Sep 11 13:18:17 <a href="http://dev-host-03.playtechtv.tv" target="_blank">dev-host-03.playtechtv.tv</a>: [pid:26150] [debug]<br>
[mixtv::payment::PlaytechUMS_base::_simple_trace_] =========&gt;<br>
params=$VAR1 = { &#39;req_ref&#39; =&gt; &#39;7864384&#39;, &#39;req_name&#39; =&gt; &#39;LOGIN&#39;, &#39;data&#39;<br>
=&gt; { &#39;Player&#39; =&gt; { &#39;errorText&#39; =&gt; &#39;&#39;, &#39;errorCode&#39; =&gt; &#39;0&#39;,<br>
&#39;GetUmsPlayerData&#39; =&gt; {}, &#39;Login&#39; =&gt; { &#39;sessionToken&#39; =&gt;<br>
&#39;1DC46A42BAFD44A4714F6C33FBBA84CE&#39;, &#39;sessionValidationData&#39; =&gt; undef,<br>
&#39;errorText&#39; =&gt; &#39;&#39;, &#39;errorCode&#39; =&gt; &#39;0&#39;, &#39;playerCode&#39; =&gt; &#39;2752191&#39;,<br>
&#39;phone&#39; =&gt; undef, &#39;username&#39; =&gt; &#39;MBTEST10&#39; } } }, &#39;type&#39; =&gt; &#39;RESPONSE&#39;<br>
};<br>
<br>
Notice GetUmsPlayerData was added to my Hash ?? is this a memory<br>
problem with exists ? checking same thing using defined i found same<br>
problem :-(<br>
<br>
-Chanan<br>
<font color="#888888"><br>
<br>
--<br>
===================<br>
----     Chanan Berler    ----<br>
===================<br>
_______________________________________________<br>
Perl mailing list<br>
<a href="mailto:Perl@perl.org.il">Perl@perl.org.il</a><br>
<a href="http://mail.perl.org.il/mailman/listinfo/perl" target="_blank">http://mail.perl.org.il/mailman/listinfo/perl</a></font></blockquote></div><br><br clear="all"><div><br></div>-- <br>Gaal Yahas &lt;<a href="mailto:gaal@forum2.org">gaal@forum2.org</a>&gt;<br>
<a href="http://gaal.livejournal.com/">http://gaal.livejournal.com/</a><br>
</div></div></div>