If you are just going to ssh into a machine and run one command with something like ssh user@host.example.com ls -l then you might prefer to just use qx().
You'll need to set up your trust relationships correctly, but you should really do that anyway because embedding a password in a script or even a configuration file isn't generally a good idea for any number of maintenance and security reasons.
While it's true that Net::SSH::Perl will save you some process overhead, that might not be an issue for you at all. The real benefit is that it is an all-Perl implementation and won't even require that ssh be installed. On the other hand, it will require that several other modules be installed.
-sauoq
"My two cents aren't worth a dime.";
|