[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

small incompatibility between 5.8.8 and 5.10.0



Hi,

is this small incompatibility on purpose?

5.10.0:

$ echo -n 1234 | perl -le '"::::::"=~/(.*)/; print $1; eval{sysread 
STDIN,$1,2}; warn "$@"; sysread STDIN, $buf, 4; print $buf, $1'
::::::
Modification of a read-only value attempted at -e line 1.
34::::::

5.8.8:

$ echo -n 1234 | perl -le '"::::::"=~/(.*)/; print $1; eval{sysread 
STDIN,$1,2}; warn "$@"; sysread STDIN, $buf, 4; print $buf, $1'
::::::
Modification of a read-only value attempted at -e line 1.
1234::::::


In both cases sysread into $1 dies. But on 5.10 it eats up input. The 
5.8.8 behavior seems more correct to me.

Torsten


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]