perl -Mstrict -wle 'print 82.46.67.88.":1"'
输出为
R.CX:1 # chr(82) . chr(46) etc.
我注意到应该至少有三个数字才能触发这种行为。 perldoc 在哪里提到它?
最佳答案
它们是“版本字符串”,首次出现在 5.6 ( http://perldoc.perl.org/perl56delta.html#Support-for-strings-represented-as-a-vector-of-ordinals )
我以为它们已经被弃用并删除了几个版本,但显然它们仍然存在。 http://perldoc.perl.org/perldata.html#Scalar-value-constructors
关于perl - 引用连接数字时的行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19518481/