develooper Front page | perl.perl5.changes | Postings from April 2008

Change 33759: [PATCH] doc patch for perlfunc/split (was: RE: [perl #46073] split

From:
Rafael Garcia-Suarez
Date:
April 27, 2008 13:15
Subject:
Change 33759: [PATCH] doc patch for perlfunc/split (was: RE: [perl #46073] split
Change 33759 by rgs@stcosmo on 2008/04/27 20:00:29

	Subject: [PATCH] doc patch for perlfunc/split (was: RE: [perl #46073] split
	From: Bram <p5p@perl.wizbit.be>
	Date: Sun, 27 Apr 2008 21:36:57 +0200
	Message-ID: <20080427213657.mowrap5cgc0o00kc@horde.wizbit.be>

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.



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About