http://qs321.pair.com?node_id=177712


in reply to perl segfaults when parsing script

I tried

perl -e'chop string;'

This segfaults with 5.6.1 / i386-linux
but not on 5.8.0 RC2 / i686-linux-thread-multi-64all-ld

On that machine it (rightly) gives:

Can't modify constant item in chop at -e line 1, near "string;"

So, yes it is a bug, and in fact it is 2 bugs: you should ofcourse be using chop $string;

-- Joost downtime n. The period during which a system is error-free and immune from user input.