我有以下代码
my %ages = ();
$a1 = "Michael Caine";
$a2 = "Dirty Den";
$a3 = "Angie";
$a4 = "Willy";
$a5 = "The Queen Mother";
$ages{$a1} = 39;
$ages{$a2} = 34;
$ages{$a3} = 27;
$ages{$a4} = "21 in dog years";
$ages{$a5} = 108;
print $age->{$a1};
但这不是打印。我不想使用键或值。如何使用'$age->{$a1}'
类型语法访问哈希的内容?