Author: lwall
Date: 2010-07-08 00:13:41 +0200 (Thu, 08 Jul 2010)
New Revision: 31569

Modified:
   docs/Perl6/Spec/S32-setting-library/IO.pod
   docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
[IO,Str] regularize .lines to be more like .words when fed a string
.lines will no longer interpret a string as a filename


Modified: docs/Perl6/Spec/S32-setting-library/IO.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/IO.pod  2010-07-07 21:04:26 UTC (rev 
31568)
+++ docs/Perl6/Spec/S32-setting-library/IO.pod  2010-07-07 22:13:41 UTC (rev 
31569)
@@ -892,14 +892,7 @@
         --> List
     )
 
-    multi lines (Str $filename,
-        Any  $limit = *,
-        Bool :$bin = False,
-        Str  :$enc = "Unicode",
-        Any  :$nl = "\n",
-        Bool :$chomp = True,
-        --> List
-    )
+    # See also Str.lines and lines(Str)
 
 Returns some or all the lines of a file or entries in a directory
 as a C<List> regardless of context.

Modified: docs/Perl6/Spec/S32-setting-library/Str.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Str.pod 2010-07-07 21:04:26 UTC (rev 
31568)
+++ docs/Perl6/Spec/S32-setting-library/Str.pod 2010-07-07 22:13:41 UTC (rev 
31569)
@@ -402,6 +402,14 @@
 function is combing a lazy structure, the return values may also be
 lazy.  (Strings are not lazy, however.)
 
+=item lines
+
+ our List multi lines ( Str $input, Int $limit = * )
+ our List multi method lines ( Str $input: Int $limit = * )
+
+Returns a list of lines, i.e. the same as a call to
+C<$input.comb( / \N*\n | \N+$ /, $limit )> would.
+
 =item words
 
  our List multi words ( Str $input, Int $limit = * )

Reply via email to