You are using the operator ->:
$e[0]->{"lkj"}
You can do something similar for arrayrefs, and this is even a chain:
my $eref = \@e;
print $eref->[0]->{"lkj"}
As a bonus, you can complete the entire setup on a single line using shorthand {}for arrayrefs:
my @e = ( { lkj => 34 }, { lkj => 66 } );
source
share