in reply to How to execute Net::OpenSSH remote command requiring input
Never mind folks, I found a sample included in the Net::OpenSSH module distribution using Expect, that should do it.