#write to the client socket print $connection "Hello Client!"; #read from the client socket my $message = <$connection>;