in reply to Re: how to stop command
in thread how to stop command

I don't think this particular eval is likely to suffer from the issues you mentioned. There's no OO code inside the eval, so no object can be destroyed inside the eval.

Replies are listed 'Best First'.
Re^3: how to stop command
by haukex (Archbishop) on Jul 23, 2018 at 17:39 UTC
    I don't think this particular eval is likely to suffer from the issues you mentioned.

    True, in this case it's probably fine. But I think it's still a good habit to get into - even seemingly innocent pieces of code can trigger the problematic behavior:

    eval { $foo = `some_bad_command` or die "blam" }; warn $@ if $@;

    won't print anything if $foo happened to be an object with the problematic DESTROY on a problematic version of Perl.