Link to number compilation behavior

perl -Mstrict -wle 'print 82.46.67.88.":1"'

output

R.CX:1 # chr(82) . chr(46) etc.

I noticed that in order to cause this behavior, there must be at least three numbers. Where is perldoc mentioned?

+4
source share
1 answer

These are the “version lines” that first appeared in 5.6 ( http://perldoc.perl.org/perl56delta.html#Support-for-strings-represented-as-a-vector-of-ordinals )

I thought they were deprecated and put a few versions back, but apparently they are still around. http://perldoc.perl.org/perldata.html#Scalar-value-constructors

+4
source

All Articles