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

hmb104 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I'm writing a very basic script using Net::OpenSSH to connect to some switches and extract some data. I have tried to use Net::SSH and it is really slow and it crashes my system. I have also tried to Expect before, but I really like to use the Net::OpenSSH module.

Is it possible to execute more than 1 command in 1 connection using this module?. Any ideas?

Also in the foreach loop, can I read from 2 arrays? Like

foreach (@arra1 || @arra2)?

Thanks for the help.