Perl关键字say在5.14.4版本中不起作用 [英] Perl keyword say is not working in version 5.14.4

查看:122
本文介绍了Perl关键字say在5.14.4版本中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Perl版本是5.14.4,但是功能say不起作用.可能是什么问题?

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

推荐答案

出于向后兼容的原因,默认情况下不可用.您可以使用

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.

这已记录.

这篇关于Perl关键字say在5.14.4版本中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆