Likely you want print "$data[0]{'firstname'}\n"; or what ever array index you need.
for my $i (0 .. $#data) { print $data[$i]{firstname}, "\n"; }
In reply to Re: Get one element from anonymous hash
by Cristoforo
in thread Get one element from anonymous hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |