my $server = Server->new(type => "ssh"); # to create an SSH connection $server->run("ifconfig"); my $server2 = Server->new(type => "socket"); # to create a socket connection $server2->run("ifconfig"); my $client = Client->new(type => "ssh"); $client->run("ls");