in reply to Special Characters_CommandOutput
Try also using the stdin_keep_open hack:
@output = $ssh->capture({stdin_data => '', stdin_keep_open => 1}, $Com +mandE); [download]