0
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};}
我的代碼如上所示。它給我的錯誤信息:perl中的錯誤:不推薦使用散列作爲參考
Using a hash as a reference is deprecated at main.pl line 141.
但是,功能仍然可運行。其餘的都很好。那麼這個錯誤在談論什麼?我該如何解決它?謝謝。
顯示整個代碼,特別是變量是如何填充數據結構的一部分。 – daxim
您可以通過以下方式檢查此錯誤:perldoc perldiag – quicoju
將「使用診斷」添加到您的代碼中。 –