in reply to Get one element from anonymous hash
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get one element from anonymous hash
by Anonymous Monk on Mar 23, 2014 at 22:44 UTC | |
|
Re^2: Get one element from anonymous hash
by Anonymous Monk on Mar 23, 2014 at 23:43 UTC | |
by NetWallah (Canon) on Mar 23, 2014 at 23:59 UTC | |
by Anonymous Monk on Mar 24, 2014 at 00:01 UTC |