in reply to IO::Socket::UNIX plus syswrite plus eval fails?

Maybe your kernel is killing the process for some obscure reason? Does the shell have anything to say about the exit code?

echo $?

On the surface, I agree with you about eval catching that stuff, but if it is some signal, that wouldn't be caught by the eval.

Replies are listed 'Best First'.
Re^2: IO::Socket::UNIX plus syswrite plus eval fails?
by cavac (Prior) on Jun 02, 2021 at 12:05 UTC

    I got 141. Damn it, Jim, it's a SIGPIPE.

    Yeah, a $SIG{PIPE} = 'IGNORE'; seems to solve the problem.

    perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'