use strict; use warnings; use feature 'say'; my $data = { nums => [10, 20, 30] }; # chain arrows to reach nested elements say $data->{nums}->[2]; # between two subscripts the arrow is optional say $data->{nums}[0];
-> derefs one element