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


in reply to perl segfaults when parsing script

No, I've not. In fact, I just tried it with both perl 5.005_03 and perl 5.6.1 on sun4-solaris, and could get no segfault:
<bioserv 117 [15:14] ~ >perl -e 'chop $x' <bioserv 118 [15:14] ~ >perl -e 'chop FOO' Can't modify constant item in chop at -e line 1, at EOF Execution of -e aborted due to compilation errors. <bioserv 119 [15:14] ~ >perl -e 'chop "BAR"' Can't modify constant item in chop at -e line 1, at EOF Execution of -e aborted due to compilation errors. <bioserv 120 [15:14] ~ >perl -v This is perl, version 5.005_03 built for sun4-solaris
(Similar results for 5.6.1 dropped)

Of course, I didn't have access to your program which segfaults perl. It could be helpful to give a minimal example which fails (= something I can try to run on my machine), as well as the output of "perl -V".