Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: perl segfaults when parsing script

by Joost (Canon)
on Jun 27, 2002 at 14:13 UTC ( #177712=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://177712]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2022-12-07 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?