in reply to Re^2: Strange behaviour with SSH command launched with openin thread Strange behaviour with SSH command launched with open
I'm not sure, but IPC::Open3 might give you better results.