I
Ilya Zakharevich
[A complimentary Cc of this posting was sent to
Let me guess: the alternative would be a sane behaviour?
perl -wle "sub edit($) {$_[0] = $_ for qw(123 456 789)}
$x = q(abc); edit substr $x, 1, 1; print $x"
a7895623c
[BTW, thanks for your explanation; I did not know about this bug...]
Yours,
Ilya
Also, if you assign to the lval with a string of a different length,
the lval still remembers it's length to be the originally created one, not
the length of the string just assigned to it. So you can assign and
then immediately read and get a different thing than what you just
assigned. But I don't know that the alternative would be any less odd.
Let me guess: the alternative would be a sane behaviour?
perl -wle "sub edit($) {$_[0] = $_ for qw(123 456 789)}
$x = q(abc); edit substr $x, 1, 1; print $x"
a7895623c
[BTW, thanks for your explanation; I did not know about this bug...]
Yours,
Ilya