In reply to Re^3: Safely capturing the output of an external program by perlancar in thread Safely capturing the output of an external program by AppleFritter