Error in perl: Using a hash as a reference is deprecated
问题 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};} My codes are shown above. and it gives me error message: Using a hash as a reference is deprecated at main.pl line 141. However, the function is still runable. And all the rests seem fine. So what is this