CONFIRMED. The non-zero exit code is the culprit.
implemented solution:open my $fh, '-|', "$command || true"
alternative solution: do not close the filehandle
In reply to Re^3: close $fh fails on a single host - looking for explanation
by Monk::Thomas
in thread close $fh fails on a single host - looking for explanation
by Monk::Thomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |