Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[spurt]: s/':new'/':createonly'/ as suggested by jnthn++.

  • Loading branch information...
commit 70c1b249af96815a909229a2addd880ee8937134 1 parent 4137ad6
@pmichaud pmichaud authored
Showing with 13 additions and 12 deletions.
  1. +13 −12 S32-setting-library/IO.pod
View
25 S32-setting-library/IO.pod
@@ -954,45 +954,46 @@ The routine will C<fail> if the file does not exist, or is a directory.
Str $contents,
Str :$enc = $?ENC,
Bool :append = False,
- Bool :new = False,
+ Bool :createonly = False,
)
multi method spurt ($handle:
Buf $contents,
Bool :append = False,
- Bool :new = False,
+ Bool :createonly = False,
)
multi spurt (IO $fh,
Str $contents,
Str :$enc = $?ENC,
Bool :append = False,
- Bool :new = False,
+ Bool :createonly = False,
)
multi spurt (IO $fh,
Buf $contents,
Bool :append = False,
- Bool :new = False,
+ Bool :createonly = False,
)
multi spurt (Str $filename,
Str $contents,
Str :$enc = $?ENC,
Bool :append = False,
- Bool :new = False,
+ Bool :createonly = False,
)
multi spurt (Str $filename,
Buf $contents,
Bool :append = False,
- Bool :new = False,
+ Bool :createonly = False,
)
Opens the file for writing, dumps the contents, and closes the file.
-If the C<:new> flag is set and the file already exists before opening, this
-routine will C<fail>. With an unset C<:new> flag, the file will instead be
-silently overwritten, unless the C<:append> flag is set, in which case the
-routine will instead add the given contents at the end of the file.
+If the C<:createonly> flag is set and the file already exists before
+opening, this routine will C<fail>. With an unset C<:createonly> flag,
+the file will instead be silently overwritten, unless the C<:append>
+flag is set, in which case the routine will instead add the given
+contents at the end of the file.
-The routine will also C<fail> with the corresponding exception if there was any
-other error in opening, writing, or closing.
+The routine will also C<fail> with the corresponding exception
+if there was any other error in opening, writing, or closing.
=back
Please sign in to comment.
Something went wrong with that request. Please try again.