一个模块至少需要 Perl 5.10.0。
当我将此模块与 Perl 版本 5.10.0 一起使用时,我收到警告:
v-string in use/require non-portable at ... (line of "use 5.10.0;").
在 Perl 5.10.1 中,这个警告被删除了。
避免警告的推荐方法是什么:
- change all "use 5.10.0" in the distro to "use 5.010_000;"
- add "no warnings 'portable';" to the module
- leave it to the user of Perl 5.10.0 to add "no warnings 'portable';"
- Increase the smallest required version to 5.10.1.
perl -wE 'use 5.10.0; say $^V'
# v-string in use/require non-portable at -e line 1.
# v5.10.0