sub function{
my $storedata=shift;
my $storenameandaddress=$storedata->{$storeid}->{name}
."_".$storedata->{$storeid}->{location}->{address}
."_".$storedata->{$storeid}->{location}->{city}
."_".$storedata->{$storeid}->{location}->{state}
."_".$storedata->{$storeid}->{location}{country};}
我的代码在上面显示。 它给了我错误信息:
Using a hash as a reference is deprecated at main.pl line 141.
然而, 函数仍然是可运行的 。 所有的休息都似乎都很好 。 这个错误在说什么? 我该如何修正它? 谢谢 。