develooper Front page | perl.perl5.porters | Postings from April 2010

[PATCH 2/5] In perlutil.pod 'Convertors', adjust "a2p" example

Thread Previous
From:
jari.aalto
Date:
April 9, 2010 02:06
Subject:
[PATCH 2/5] In perlutil.pod 'Convertors', adjust "a2p" example
Message ID:
1270803956-8208-2-git-send-email-jari.aalto@cante.net
From: Jari Aalto <jari.aalto@cante.net>

Use split() without parens in simple a context.

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 pod/perlutil.pod |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pod/perlutil.pod b/pod/perlutil.pod
index b1c332d..2fc0022 100644
--- a/pod/perlutil.pod
+++ b/pod/perlutil.pod
@@ -89,7 +89,7 @@ on the simple F<awk> script C<{print $2}> will produce a Perl program
 based around this code:
 
     while ( <> ) {
-        my ($Fld1, $Fld2) = split(/[:\n]/, $_, 9999);
+        my ($Fld1, $Fld2) = split /[:\n]/, $_, 9999;
         print $Fld2;
     }
 
-- 
1.7.0


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About