Using a hash as a reference is deprecated at template example/index.html.ep line 8
Using a array as a reference is deprecated at template example/index.html.ep line 8
很简单 因为没有正确使用hash跟数组造成的
%= %$entries->{$id}->{'id'}; %= %$entries->{$id}->{'title'}; %= %$entries->{$id}->{'text'};
改成
%= $entries->{$id}->{'id'}; %= $entries->{$id}->{'title'}; %= $entries->{$id}->{'text'};
就好了。。。
转载于:https://blog.51cto.com/rzl01/1616102