in reply to Re^2: Referring to an array without copying to a separate variable first
in thread Referring to an array without copying to a separate variable first
"@$res->{objects} means @{$res}->{objects} which doesn't make sense."
It doesn't make sense to me either but B::Deparse seems to know what's going on:
$ perl -MO=Deparse,p -e '@{$res}->{objects}' @{$res;}->{'objects'}; -e syntax OK
I suspect the ; after $res is the key but I'm not sure why. I shall have to give this some more thought.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Referring to an array without copying to a separate variable first
by LanX (Saint) on Jun 27, 2013 at 10:04 UTC | |
by kcott (Archbishop) on Jun 30, 2013 at 05:07 UTC |