“明确”的后果是什么;使用「-如何定义各种Perl版本?

“明确”的后果是什么;使用「-如何定义各种Perl版本?,perl,Perl,我正在学习Perl,对较新版本中的默认值和更改没有太多经验。例如,我把放在使用v5.10上在我所有脚本的开头(即使我已经安装了5.28.1版),这样我就可以安全地使用say()函数。显然,“使用”-ingv5.12默认情况下将启用strict “使用”-ingv5.10或v5.12进行了哪些其他更改?最新版本做了哪些更改?个人项目或开源项目是否有常用版本?使用特定最低版本的效果记录在中。简而言之,启用了较新的功能并启用了严格性检查 以下是本页的摘录: bundle features inc

我正在学习Perl,对较新版本中的默认值和更改没有太多经验。例如,我把
放在使用v5.10上在我所有脚本的开头(即使我已经安装了5.28.1版),这样我就可以安全地使用
say()
函数。显然,“使用”-ing
v5.12
默认情况下将启用
strict


“使用”-ing
v5.10
v5.12
进行了哪些其他更改?最新版本做了哪些更改?个人项目或开源项目是否有常用版本?

使用特定最低版本的效果记录在中。简而言之,启用了较新的功能并启用了严格性检查

以下是本页的摘录:

bundle    features included
--------- -----------------
:default  indirect

:5.10   say state switch indirect

:5.12   say state switch unicode_strings indirect
        [also does the equivalent of use strict;]
[...]
:5.28   say state switch unicode_strings
        unicode_eval evalbytes current_sub fc
        postderef_qq bitwise indirect
        [also does the equivalent of use strict;]

:5.30   say state switch unicode_strings
        unicode_eval evalbytes current_sub fc
        postderef_qq bitwise indirect
        [also does the equivalent of use strict;]

:5.32   say state switch unicode_strings
        unicode_eval evalbytes current_sub fc
        postderef_qq bitwise indirect
        [also does the equivalent of use strict;]

@ATLief这是关于
使用
-ing一个特性包,而您询问的是
使用v5.10。此外,Perl版本也被强制执行。请看,这个答案没有提到的是,还执行了版本检查。