Navigation Menu

Skip to content

Commit

Permalink
IOish fixes for cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Aug 5, 2017
1 parent 0912154 commit ffb8930
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -17,7 +17,7 @@ (:$dir = ".")
my $files = find(:dir($dir), :type('file'));

for $files.map({.IO}).sort -> $io {
say $io.abspath;
say $io.absolute;
}
}

Expand Down
Expand Up @@ -11,7 +11,7 @@
=end pod

sub MAIN(:$file = "/usr/lib64/libc.so") {
my $io = IO::Path.new-from-absolute-path($file);
my $io = $file.IO;

say "basename: ", $io.basename;
say "dirname: ", $io.dirname;
Expand Down
2 changes: 1 addition & 1 deletion categories/cookbook/17sockets/17-01tcp_client.pl
Expand Up @@ -11,7 +11,7 @@
=end pod

my $s = IO::Socket::INET.new( :host<www.perl6.org>, :port(80) );
$s.print( "HEAD / HTTP/1.0\n\n" );
$s.print( "HEAD / HTTP/1.0\r\n\r\n" );

while my $r = $s.get {
say $r;
Expand Down

0 comments on commit ffb8930

Please sign in to comment.