Can someone publish more of this code...I tried to emulate this by guessing and came up with this:<div><br></div><div>-- snip --</div><div><br></div><div><div>#!/usr/bin/perl -w</div><div>use strict;</div><div>use Data::Dumper;</div>
<div><br></div><div>my %hash = ();</div><div>my @junk = qw|a b c d e f g|;</div><div><br></div><div>for(@junk)</div><div>{</div><div>    push @{{\%hash}-&gt;{&#39;something&#39;}},{id=&gt;$_};</div><div>}</div><div>print Dumper %hash;</div>
<div><br></div><div>-- end snip --</div><div><br></div><div>This kicks out all kinds of errors:</div><div><br></div><div>Odd number of elements in anonymous hash at <a href="http://hashref.pl">hashref.pl</a> line 11.</div>
<div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 10:18 AM, imran javaid <span dir="ltr">&lt;<a href="mailto:imranjj@gmail.com">imranjj@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;">
what if you had used the following?<br>
<div class="im">push @{%hash{$odate}}, {id =&gt; $id, ..<br>
<br>
</div><font color="#888888">-imran<br>
</font><div><div></div><div class="h5"><br>
On Thu, Apr 8, 2010 at 9:42 AM, Brad Doty &lt;<a href="mailto:bdoty@eqtc.com">bdoty@eqtc.com</a>&gt; wrote:<br>
&gt; Speaking of PM as a source for assistance...<br>
&gt;<br>
&gt; I was just composing a note to ask you guys how to solve a pesky warning<br>
&gt; in inherited code.  My fear of embarrassment in front of the entire<br>
&gt; group made me review my terms more precisely, which suggested a<br>
&gt; solution.  And it worked!<br>
&gt;<br>
&gt; So thanks, ChicagoPM, for helping me solve my problem.<br>
&gt;<br>
&gt; My solution is this<br>
&gt;<br>
&gt; 940c940<br>
&gt; &lt;old     push @{%hash-&gt;{$odate}}, {id =&gt; $id, ...<br>
&gt; ---<br>
&gt;&gt;new     push @{{\%hash}-&gt;{$odate}}, {id =&gt; $id, ...<br>
&gt;<br>
&gt; Any critiques or better ideas to avoid using hash as a reference?<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Brad<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Chicago-talk mailing list<br>
&gt; <a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>
&gt; <a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br>
&gt;<br>
_______________________________________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br><br><br>Joel Limardo<br>Chief Software Engineer<br>ForwardPhase Technologies, LLC <br>401 N. Michigan Avenue<br>Suite 1200-10<br>Chicago, IL 60611<br>
<a href="http://www.forwardphase.com">www.forwardphase.com</a><br><a href="mailto:joel.limardo@forwardphase.com">joel.limardo@forwardphase.com</a><br>LinkedIn: <a href="http://www.linkedin.com/in/joellimardo">http://www.linkedin.com/in/joellimardo</a><br>
Twitter: <a href="http://twitter.com/joellimardo">http://twitter.com/joellimardo</a><br>Fax: 815-346-9495<br>Ph : 877-321-5467<br>
</div>