perl---window下Mojolicious框架提示Using a hash as a reference is deprecated at template

时间:2015-03-01 22:28:59   收藏:0   阅读:316


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

原文:http://rzl01.blog.51cto.com/3004337/1616102

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!