Skip to content

Commit

Permalink
more 6ish
Browse files Browse the repository at this point in the history
  • Loading branch information
stmuk committed Apr 16, 2015
1 parent ece01d9 commit e0eda16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion categories/cookbook/17sockets/17-01tcp_client.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ =head1 Writing a TCP Client
my $s = IO::Socket::INET.new( :host<www.perl6.org>, :port(80) );
$s.send( "HEAD / HTTP/1.0\n\n" );

while ( my $r = $s.get ) {
while my $r = $s.get {
say $r;
}

Expand Down
2 changes: 1 addition & 1 deletion categories/cookbook/17sockets/17-02tcp_server.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ =head1 Writing a TCP Server
my $s = IO::Socket::INET.new( :localport(1024), :type(1), :reuse(1),
:listen(10));

while ( my $c = $s.accept() ) {
while my $c = $s.accept() {
say $c.get;
}

Expand Down

0 comments on commit e0eda16

Please sign in to comment.