Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How to kill perl?

by robin (Chaplain)
on Nov 04, 2005 at 23:30 UTC ( #505905=note: print w/ replies, xml ) Need Help??


in reply to Re: How to kill perl?
in thread How to kill perl?

Any one have any others?

I just fixed a whole bunch of sort-related ones, which is what got me thinking about this. If your perl is less more than a week old, these should kill it:

perl -e'sub f{undef &f} ()=sort f 1,2' perl -e'sub f{goto sub{1}} ()=sort f 1,2' perl -e'@a=(1..10);@a=sort{@a=(1);0}@a'


Comment on Re^2: How to kill perl?
Download Code
Re^3: How to kill perl?
by sauoq (Abbot) on Nov 04, 2005 at 23:52 UTC
    perl -e'@a=(1..10);@a=sort{@a=(1);0}@a'

    That works fine for me on 5.8.0 buts segfaults on 5.8.7.

    -sauoq
    "My two cents aren't worth a dime.";
    
      Since 5.8.4, @foo = sort @foo is optimised to be an in-place sort of @foo, which is what makes it die so messily.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-12-27 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls