Created
September 10, 2015 14:14
-
-
Save spacebat/f57e2572cb0b42ebe6da to your computer and use it in GitHub Desktop.
This file contains 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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