in reply to Running Commands From Web

You can always execute programs from your Perl script
with ...
`myscript -x 123`;
... or ...
system ( 'myscript', '-x 123' );
Just do ...
$ perldoc -f system
... from your command line and read all about it.
You might want to also look at CPAN
for other ways of dealing with ssh.

I hope that helps.