note
Joost
I tried
<p>
<code>
perl -e'chop string;'
</code>
<p>
This segfaults with <code>5.6.1 / i386-linux</code><br>
but not on <code>5.8.0 RC2 / i686-linux-thread-multi-64all-ld</code>
<p>
On that machine it (rightly) gives:
<code>
Can't modify constant item in chop at -e line 1, near "string;"
</code>
<p>
So, yes it is a bug, and in fact it is 2 bugs: you should ofcourse be using <code>chop $string;</code>
<code>
--
Joost downtime n. The period during which a system
is error-free and immune from user input.
</code>
177680
177680