Curses::UI - 列表框:注意:“不能使用字符串 (“Gino.Francescutti@xx”)”不包含完整的电子邮件,仅包含部分内容
大部分信息都在这里: http://pastebin.com/VE6dhUkf
但一般错误是:
Odd number of elements in hash assignment at /usr/share/perl5/Curses/UI/Container.pm line 72.
Can't use string ("Gino.Francescutti@xx") as an ARRAY ref while "strict refs" in use at /usr/share/perl5/Curses/UI/Listbox.pm line 264.
注意: “无法使用字符串(“Gino.Francescutti@xx”)”不包含完整的电子邮件,仅包含部分内容。
Most of the information is here: http://pastebin.com/VE6dhUkf
But the general error is:
Odd number of elements in hash assignment at /usr/share/perl5/Curses/UI/Container.pm line 72.
Can't use string ("Gino.Francescutti@xx") as an ARRAY ref while "strict refs" in use at /usr/share/perl5/Curses/UI/Listbox.pm line 264.
Note: The "Can't use string ("Gino.Francescutti@xx")" Doesn't contain the full email, only partial.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜你混淆了数组和数组引用。你有这个:
注意
-values =>; @marray
?那应该是-values => \@marray
。来自精细手册 :这种混淆并不直接指向您的错误消息,但它可能会严重扰乱
$win->add
所看到的内容,并将其混淆到足以导致您所看到的副作用的错误。I'm guessing that you're mixing up your arrays and array-refs. You have this:
Notice the
-values => @marray
? That should be-values => \@marray
. From the fine manual:That mixup doesn't directly point to your error message but it could sufficiently mess up what
$win->add
is seeing and confuse it enough to cause the error you're seeing as a side effect.