"@$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
In reply to Re^3: Referring to an array without copying to a separate variable first
by kcott
in thread Referring to an array without copying to a separate variable first
by willjones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |