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


in reply to Re^2: Net::SSH2 related query
in thread Net::SSH2 related query

In print $chan "ls\n";, $chan is like a filehandle (open FH, '>', 'file.txt'; print FH "something\n";). The print command sends the characters over the SSH connection to the shell on the other end.