in reply to Net::OpenSSH mutliple commands

You should find answers in this node: Net::OpenSSH can't change working directory. And if that doesn't answer everything, ask again, but please also note the advice there about posting code