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‘};就好了。。。
本文出自 “RZL_01的博客” 博客,请务必保留此出处http://rzl01.blog.51cto.com/3004337/1616102
perl---window下Mojolicious框架提示Using a hash as a reference is deprecated at template
原文地址:http://rzl01.blog.51cto.com/3004337/1616102