in reply to net ssh perl pukes when ...

Here is another thread along the same lines as your question, that should provide some insight into your problem, specifically Abigail-II's response. (here is another thread that might prove useful, super search turned up a lot more things so I would go there next if neither of these threads answers your question.)

-enlil