#Perl client. #!/usr/bin/perl -w use strict; use IO::Socket::INET; local $| = 1; my $host = '127.0.0.1'; my $port = 8500; my $ID; my $PW; my $client = new IO::Socket::INET( PeerAddr => $host, PeerPort => $port, Proto => 'tcp', Type => SOCK_STREAM, ) or die "Couldn't create client : $!\n"; my $data = <$client>; print $data; chomp( $ID = <$client> ); print $client $ID;