You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/perl
|
|
use warnings;
|
|
use strict;
|
|
use IO::Socket;
|
|
my $sock = IO::Socket::INET->new('remote.host.com:7777');
|
|
while (<$sock>) {
|
|
print "Server: $sock\n";
|
|
print "Response?";
|
|
my $response = <STDIN>;
|
|
print $sock $response;
|
|
} |