On Wed, Jan 14, 2009 at 4:32 PM, Dan Linder <span dir="ltr"><<a href="mailto:dan@linder.org" target="_blank">dan@linder.org</a>></span> wrote:
<div class="gmail_quote"><div>> Another thought I had: Is it possible to "define $hash{$key}" manually<br>> without assigning a value to it? (i.e. the opposite of "undef $hash{$key}")</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><br>On Wed, Jan 14, 2009 at 4:54 PM, Theodore Katseres <span dir="ltr"><<a href="mailto:tedkat@gmail.com">tedkat@gmail.com</a>></span> wrote:<br>> Yes but a warning will pop up in it's place "Useless use of hash element in void context"<br>
<br>IIRC, I ran across that using the "($hash{$key} || 0);" idea.<br><br>Later:<br>> Make sure that each var in the hash key is defined. <br><div class="gmail_quote"><div><br></div></div></div></div>I'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'll try defining the new key one step at a time and see what that produces.<br><br>Later:<br>> That will take care of the warnings but it might hide a bug too :P<br><br>I know there's a few options that can be appended to the "use strict" line - which one will apply to this hash key issue? My Google search term MoJo isn't finding the information.<br>
<br>Thanks,<br><br>Dan<br><br>-- <br>"Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal<br>"I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author)<br>
** *** ***** ******* *********** *************<br>