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

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

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

Add space after each comma.

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

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


Thread Next


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