Perl keyword say is not working in version 5.14.4

非 Y 不嫁゛ 提交于 2019-12-11 03:53:55

问题


My Perl version is 5.14.4, but the function say is not working. What might be wrong?


回答1:


For backwards compatibility reasons, it's not available by default. You could use

CORE::say(...);          # Requires Perl 5.16.

but it's probably better to add one of the following:

use feature qw( say );   # Requires Perl 5.10.
use v5.10;               # All 5.10 features including "say".
use 5.010;               # Same as previous.
use v5.14;               # All 5.14 features including "say".
use 5.014;               # Same as previous.

This is documented.



来源:https://stackoverflow.com/questions/29888093/perl-keyword-say-is-not-working-in-version-5-14-4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!