in reply to Int-3 equivalent?

I'm not sure if this is what you asked for,
kill 11 => $$ if not exists $hash{'thing'} or $hash{'thing'} ne 'somet +hing';
Boris

Replies are listed 'Best First'.
Re^2: Int-3 equivalent?
by Zaxo (Archbishop) on Jun 10, 2004 at 01:13 UTC

    Perhaps SIGTRAP (== 5 here) is more appropriate than segfault. It's not POSIX but it is susv2, and described as "Trace/breakpoint trap" in man 7 signal. The default action is to core and exit, but a %SIG{TRAP} handler can deal with that.

    After Compline,
    Zaxo

Re^2: Int-3 equivalent?
by BrowserUk (Patriarch) on Jun 10, 2004 at 01:00 UTC

    kill 11 terminates the program and the debugger. Not at all what I am looking for.

    I've update the OP in an attempt to make things a bit clearer. Whether I've succeeded you'll have to judge for yourself:)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail