<div class="gmail_quote">On Thu, Jan 15, 2009 at 10:08 AM, Dan Linder <span dir="ltr">&lt;<a href="mailto:dan@linder.org">dan@linder.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, Jan 14, 2009 at 4:32 PM, Dan Linder <span dir="ltr">&lt;<a href="mailto:dan@linder.org" target="_blank">dan@linder.org</a>&gt;</span> wrote:
</div><div class="gmail_quote"><div class="Ih2E3d"><div>&gt; Another thought I had:&nbsp;Is it possible to &quot;define $hash{$key}&quot; manually<br>&gt; without assigning a value to it?&nbsp; (i.e. the opposite of &quot;undef $hash{$key}&quot;)</div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div></div></div></blockquote></div><div><div class="Ih2E3d"><br>On Wed, Jan 14, 2009 at 4:54 PM, Theodore Katseres <span dir="ltr">&lt;<a href="mailto:tedkat@gmail.com" target="_blank">tedkat@gmail.com</a>&gt;</span> wrote:<br>
&gt; Yes but a warning will pop up in it&#39;s place &quot;Useless use of hash element in void context&quot;<br>
<br></div>IIRC, I ran across that using the &quot;($hash{$key} || 0);&quot; idea.<br><br>Later:<div class="Ih2E3d"><br>&gt; Make sure that each var in the hash key is defined. <br><div class="gmail_quote"><div><br></div>
</div></div></div></div>I&#39;d like to, but the keys are coming in as a file is processed and the keys come directly from the file.<br>
<br>I&#39;ll try defining the new key one step at a time and see what that produces.<br><br>Later:<div class="Ih2E3d"><br>&gt;&nbsp; That will take care of the warnings but it might hide a bug too :P<br><br></div>I know there&#39;s a few options that can be appended to the &quot;use strict&quot; line - which one will apply to this hash key issue?&nbsp; My Google search term MoJo isn&#39;t finding the information.</blockquote>
<div><br>&nbsp;If you just want to turn warnings off the best you could get without re-coding the block<br>would be to add C&lt;no warnings;&gt; after line 55. <br></div></div><br>-- <br>Ted Katseres<br> &nbsp; &nbsp; &nbsp;||=O=||<br>