Values & References8 / 18
Up next

The arrow operator

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];
What you're solving

-> derefs one element