WAmaro has asked for the wisdom of the Perl Monks concerning the following question:

I need to do some special case error checking.

In Perl 5.8 I can use the following to cause the perl executable to crash perl -e"$x = 'x' x 1e11" (Thanks BrowserUK).

I need to force a crash of a 5.6 perl executable, however, the above command doesn't seem to do it.

Anyone have a command that will cause a 5.6 perl executable to crash? Not the script to fail, but the actual perl executable

Thanks in advance for your help

Replies are listed 'Best First'.
Re: Force Perl Executable to Crash
by BrowserUk (Patriarch) on Dec 06, 2006 at 22:09 UTC

    This should probably work for 5.6?

    perl -edump

    If not, take a look at How to kill perl?, something there should.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Thanks for the pointer..
      perl -e dump
      didn't but
      perl -e "()= sort {*a=*b, 1} 2,3"
      did
        perl -e dump works for me in 5.6 - what kind of output are you looking for?