Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add :createonly to valid named parameters for open()
  • Loading branch information
hoelzro committed Jun 23, 2015
1 parent dc32b3b commit 87bd1b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions S32-setting-library/IO.pod
Expand Up @@ -78,6 +78,7 @@ X<open()>
# newlines
Any :$nl = "EOL",
Bool :$chomp = True,
Bool :$createonly = False,
--> IO::Handle ) is export

A convenience function for opening normal files as text (by default) as
Expand Down Expand Up @@ -133,6 +134,12 @@ C<"\r\n"> or C<"\r"> or any other Unicode character that has the C<Zl>
Whether or not to remove new line characters from text obtained with
C<.lines> and C<.get>. Defaults to C<True>.

=item :createonly

Whether or not to fail if the given file already exists. Only makes
sense if the file is opened with C<:w>, C<:rw>, or C<:a>. Defaults to
C<False>.

=back

=head2 dir()
Expand Down

0 comments on commit 87bd1b0

Please sign in to comment.