in reply to
Re: Net::OpenSSH multiple commands
in thread Net::OpenSSH multiple commands
The line ...
my ($pty,$pid) = $ssh->open2pty
or die "unable to run remote command show ip arp";
... does mostly nothing, delete it.
This code, however, gives me 2 errors
Those are probably harmless, generated by OpenSSH because you are requesting a remote pty but attaching it to a non-pty stream.
BTW, when writing follow ups to previous comments, do not reply to main question but to those, otherwise the person you are responding (i.e. me) will probably miss the reply.