Skip to content

Instantly share code, notes, and snippets.

@spacebat
Created September 10, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacebat/f57e2572cb0b42ebe6da to your computer and use it in GitHub Desktop.
Save spacebat/f57e2572cb0b42ebe6da to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl6
my $s = IO::Socket::INET.new(:host<abc.net.au>, :port(80));
$s.print("GET / HTTP/1.0\r\nHost: abc.net.au\r\n\r\n");
# Too many positionals passed; expected 1 argument but got 2
# in block <unit> at /home/spacebat/sock.pl6:4
@spacebat
Copy link
Author

Turns out this was caused by using the latest date tag of rakudo, 2015.07.2 which was a bit old for the latest panda code. The best way to get the latest rakudo is: rakudobrew build moar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment