user
For this exercise a program is open a socket to localhost on port 256 and send the message "hello socket world" before closing the socket.

Catching any exceptions or errors is not required.
assistant
(formerly Perl 6)

**Works with**: rakudo version 2016.03

Will fail with a connect error if there is not a socket server of some kind available on the specified host and port.

```
my $host = '127.0.0.1';
my $port = 256;

my $client = IO::Socket::INET.new(:$host, :$port);
$client.print( 'hello socket world' );
$client.close;

```