Change 33759 by [EMAIL PROTECTED] on 2008/04/27 20:00:29

        Subject: [PATCH] doc patch for perlfunc/split (was: RE: [perl #46073] 
split
        From: Bram <[EMAIL PROTECTED]>
        Date: Sun, 27 Apr 2008 21:36:57 +0200
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/pod/perlfunc.pod#598 edit

Differences ...

==== //depot/perl/pod/perlfunc.pod#598 (text) ====
Index: perl/pod/perlfunc.pod
--- perl/pod/perlfunc.pod#597~33678~    2008-04-14 08:16:08.000000000 -0700
+++ perl/pod/perlfunc.pod       2008-04-27 13:00:29.000000000 -0700
@@ -5445,7 +5445,7 @@
 matching a null string) will split the value of EXPR into separate
 characters at each point it matches that way.  For example:
 
-    print join(':', split(/ */, 'hi there'));
+    print join(':', split(/ */, 'hi there')), "\n";
 
 produces the output 'h:i:t:h:e:r:e'.
 
@@ -5454,7 +5454,7 @@
 of C<//> to mean "the last successful pattern match".  So, for C<split>,
 the following:
 
-    print join(':', split(//, 'hi there'));
+    print join(':', split(//, 'hi there')), "\n";
 
 produces the output 'h:i: :t:h:e:r:e'.
 
@@ -5469,8 +5469,8 @@
 when LIMIT is given and is not 0), regardless of the length of the match.
 For example:
 
-   print join(':', split(//,   'hi there!', -1));
-   print join(':', split(/\W/, 'hi there!', -1));
+   print join(':', split(//,   'hi there!', -1)), "\n";
+   print join(':', split(/\W/, 'hi there!', -1)), "\n";
 
 produce the output 'h:i: :t:h:e:r:e:!:' and 'hi:there:', respectively,
 both with an empty trailing field.
End of Patch.

Reply via email to