### here we tell perl to treat the scalar as a ref ### to an array. foreach my $item (@{$chapters}){ print $item->{title}; }