my $arrayElement = ${$arrayRef}[0]; my $hashValue = %{$hashRef}{key};