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

imran javaid imranjj at gmail.com
Thu Apr 8 08:18:32 PDT 2010


what if you had used the following?
push @{%hash{$odate}}, {id => $id, ..

-imran

On Thu, Apr 8, 2010 at 9:42 AM, Brad Doty <bdoty at eqtc.com> wrote:
> 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
>
> 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?
>
>
> Thanks,
>
> Brad
>
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>


More information about the Chicago-talk mailing list