Note that @{$res->{objects}} and @$res->{objects} are not the same.#!/usr/bin/perl use strict; use warnings; my $res = { 'objects'=>[ {'a'=>'1', b=>'2'} ] }; for my $elem ( @{$res->{objects}} ) { print $elem->{a}."\n"; print $elem->{b}."\n"; }
In reply to Re: Referring to an array without copying to a separate variable first
by keszler
in thread Referring to an array without copying to a separate variable first
by willjones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |