Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
#262 fixup - Add :$rw to open sub
  • Loading branch information
vendethiel committed Apr 16, 2014
1 parent 0c11bcb commit 22db812
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 22db812

Please sign in to comment.