[Chicago-talk] Deprecated use of hash as a reference

Sean Blanton sblanton at choppertrading.com
Thu Apr 8 08:19:33 PDT 2010

I find that structuring a problem in order to explain it to others often exposes something I've missed and I end up solving the problem myself. I've started an email probably 4 times in the last month only to resolve the issue before sending it. So, yeah, thanks all ;)

-----Original Message-----
From: chicago-talk-bounces+sblanton=choppertrading.com at pm.org [mailto:chicago-talk-bounces+sblanton=choppertrading.com at pm.org] On Behalf Of Brad Doty
Sent: Thursday, April 08, 2010 9:43 AM
To: chicago-talk at pm.org
Subject: [Chicago-talk] Deprecated use of hash as a reference

Speaking of PM as a source for assistance...

I was just composing a note to ask you guys how to solve a pesky warning
in inherited code.  My fear of embarrassment in front of the entire
group made me review my terms more precisely, which suggested a
solution.  And it worked!

So thanks, ChicagoPM, for helping me solve my problem.

My solution is this

<old     push @{%hash->{$odate}}, {id => $id, ...
>new     push @{{\%hash}->{$odate}}, {id => $id, ...

Any critiques or better ideas to avoid using hash as a reference?



Chicago-talk mailing list
Chicago-talk at pm.org

CONFIDENTIALITY WARNING: This email including any attachments may contain privileged or confidential information and is for the sole use of the intended recipient(s). Any unauthorized use or disclosure of this communication is prohibited. This e-mail may also be subject to specific non-disclosure and confidentiality provisions.  The information contained herein is the property of Chopper Trading, LLC.  If you believe that you have received this email in error, please notify the sender immediately and delete it from your system.

More information about the Chicago-talk mailing list