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

Brad Doty bdoty at eqtc.com
Thu Apr 8 07:42:44 PDT 2010

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?



More information about the Chicago-talk mailing list