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

Lee Aylward lee at laylward.com
Thu Apr 8 08:29:26 PDT 2010


On Thu, 08 Apr 2010 09:42:44 -0500
Brad Doty <bdoty at eqtc.com> wrote:

> My solution is this
> 
> 940c940
> <old     push @{%hash->{$odate}}, {id => $id, ...
> ---
> >new     push @{{\%hash}->{$odate}}, {id => $id, ...
> 
> Any critiques or better ideas to avoid using hash as a reference?
> 

It looks like a lot of unnecessary references are being used there.
Seems to me that you just need

  push @{ $hash{$odate} }, {id => $id, ...

It is hard to know without seeing the rest of the code, though.

-- 
Lee Aylward


More information about the Chicago-talk mailing list