http://www.perlmonks.org?node_id=1002406


in reply to Run Remote Command Via SSH

Hi, sorry, I know nothing about Net::SSH.

However, when you "use" with a list, it is only subs within that list that are immediately available.

Try

use Net::SSH qw(ssh_cmd ssh ...)

Good luck!