Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 70c1b249af96815a909229a2addd880ee8937134 1 parent 4137ad6
Patrick R. Michaud authored July 06, 2012

Showing 1 changed file with 13 additions and 12 deletions. Show diff stats Hide diff stats

  1. 25  S32-setting-library/IO.pod
25  S32-setting-library/IO.pod
Source Rendered
@@ -954,45 +954,46 @@ The routine will C<fail> if the file does not exist, or is a directory.
954 954
         Str   $contents,
955 955
         Str  :$enc = $?ENC,
956 956
         Bool :append = False,
957  
-        Bool :new = False,
  957
+        Bool :createonly = False,
958 958
     )
959 959
     multi method spurt ($handle:
960 960
         Buf   $contents,
961 961
         Bool :append = False,
962  
-        Bool :new = False,
  962
+        Bool :createonly = False,
963 963
     )
964 964
     multi spurt (IO $fh,
965 965
         Str   $contents,
966 966
         Str  :$enc = $?ENC,
967 967
         Bool :append = False,
968  
-        Bool :new = False,
  968
+        Bool :createonly = False,
969 969
     )
970 970
     multi spurt (IO $fh,
971 971
         Buf   $contents,
972 972
         Bool :append = False,
973  
-        Bool :new = False,
  973
+        Bool :createonly = False,
974 974
     )
975 975
     multi spurt (Str $filename,
976 976
         Str   $contents,
977 977
         Str  :$enc = $?ENC,
978 978
         Bool :append = False,
979  
-        Bool :new = False,
  979
+        Bool :createonly = False,
980 980
     )
981 981
     multi spurt (Str $filename,
982 982
         Buf   $contents,
983 983
         Bool :append = False,
984  
-        Bool :new = False,
  984
+        Bool :createonly = False,
985 985
     )
986 986
 
987 987
 Opens the file for writing, dumps the contents, and closes the file.
988 988
 
989  
-If the C<:new> flag is set and the file already exists before opening, this
990  
-routine will C<fail>.  With an unset C<:new> flag, the file will instead be
991  
-silently overwritten, unless the C<:append> flag is set, in which case the
992  
-routine will instead add the given contents at the end of the file.
  989
+If the C<:createonly> flag is set and the file already exists before 
  990
+opening, this routine will C<fail>.  With an unset C<:createonly> flag, 
  991
+the file will instead be silently overwritten, unless the C<:append> 
  992
+flag is set, in which case the routine will instead add the given 
  993
+contents at the end of the file.
993 994
 
994  
-The routine will also C<fail> with the corresponding exception if there was any
995  
-other error in opening, writing, or closing.
  995
+The routine will also C<fail> with the corresponding exception 
  996
+if there was any other error in opening, writing, or closing.
996 997
 
997 998
 =back
998 999
 

0 notes on commit 70c1b24

Please sign in to comment.
Something went wrong with that request. Please try again.