in reply to Re^2: close $fh fails on a single host - looking for explanation
in thread close $fh fails on a single host - looking for explanation
CONFIRMED. The non-zero exit code is the culprit.
implemented solution:open my $fh, '-|', "$command || true"
alternative solution: do not close the filehandle
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: close $fh fails on a single host - looking for explanation
by McA (Priest) on Feb 13, 2014 at 12:21 UTC |