in reply to Range operator anomaly
the second as:for '0001' .. '1999'
and the third as:for '0001' .. '1999'
So far as perl is concerned, it's then just a matter of understanding why those three renditions (well, two renditions actually) produce those outputs.for '0001' .. '\'1999\''
(Btw, there's also an anomaly in your subject line ;-)use warnings; for('0001' .. 1999) {print "\r$_"} print "\n"; for('0001' .. '1999') {print "\r$_"} print "\n"; for('0001' .. '\'1999\'') {print "\r$_"} __END__ Outputs: 1999 1999 999999
|
|---|