Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #263 from Nami-Doc/patch-3
#262 fixup - Add :$rw to `open` sub
  • Loading branch information
FROGGS committed Apr 16, 2014
2 parents 0c11bcb + 22db812 commit 8bac4dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/IO.pm
Expand Up @@ -606,8 +606,8 @@ sub rmdir($path as Str) {
}

proto sub open(|) { * }
multi sub open($path, :$r, :$w, :$a, :$p, :$bin, :$chomp = Bool::True, :enc(:$encoding) = 'utf8') {
IO::Handle.new.open($path, :$r, :$w, :$a, :$p, :$bin, :$chomp, :$encoding);
multi sub open($path, :$r, :$w, :$rw, :$a, :$p, :$bin, :$chomp = Bool::True, :enc(:$encoding) = 'utf8') {
IO::Handle.new.open($path, :$r, :$w, :$rw, :$a, :$p, :$bin, :$chomp, :$encoding);
}

proto sub lines(|) { * }
Expand Down

0 comments on commit 8bac4dd

Please sign in to comment.