note
sth
<p>
What are you doing on the remote server? If you are just running a non interactive program, then I would use Net::Telnet. If they are programs that need interactive responses, then Expect is probably what you want. I usually ssh to a server and run a command with a system() call.
</p>
<p>
I probably should clarify that, I create a command like,
<code>
my $cmd = q[ssh hostname -l foo 'ls bar'];
die $! if system($cmd);
</code>
<p> sth </p>
311776
311776