Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (5 sloc) 194 Bytes
use Socket *;
my $sock = Socket.socket(AF_INET, SOCK_STREAM, 0);
$sock.connect(Socket.sockaddr_in(80, Socket.inet_aton('localhost')));
$sock.write("GET / HTTP/1.0\r\n\r\n");
say($sock.read());
Jump to Line
Something went wrong with that request. Please try again.