很多书中都说,在perl 5.0.10之后,只要明确Perl的版本就可以直接使用say函数,但经过测试发现,在皮尔洛5.0.14版本上
use 5.0.14;
即使使用了上面的显示说明,也不能直接使用say,报错:
Unquoted string "say" may clash with future reserved word .....
如果想使用say函数,需要显示说明:
use feature qw(say);
很多书中都说,在perl 5.0.10之后,只要明确Perl的版本就可以直接使用say函数,但经过测试发现,在皮尔洛5.0.14版本上
use 5.0.14;
即使使用了上面的显示说明,也不能直接使用say,报错:
Unquoted string "say" may clash with future reserved word .....
如果想使用say函数,需要显示说明:
use feature qw(say);