foreach my $detail (@{$test_data}){ my $name = $detail->{name}; print "$name\n"; }