Created
September 2, 2012 10:22
-
-
Save tadzik/3596516 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┌─[tadzik@yavin4]─[~] | |
└─[%]─> cat dupa.pl | |
my $a = IO::Socket::INET.new( | |
localhost => 'localhost', | |
localport => 1337, | |
:listen | |
); | |
say "Listening"; | |
my $b = $a.accept(); | |
say "accepted"; | |
my $c = $b.recv; | |
say $c.perl; | |
┌─[tadzik@yavin4]─[~] | |
└─[%]─> perl6 dupa.pl& | |
[1] 16976 | |
┌─[tadzik@yavin4]─[~] | |
└─[%]─> Listening | |
┌─[tadzik@yavin4]─[~] | |
└─[%]─> ncat localhost 1337 | |
accepted | |
foo | |
Invalid operation on binary string | |
in method perl at src/gen/CORE.setting:3994 | |
in block at dupa.pl:10 | |
[1] + exit 1 perl6 dupa.pl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment