summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
authorSteven Schubiger <schubiger@cpan.org>2005-10-31 23:48:27 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-11-10 10:52:51 +0000
commit4358a253560c226dd674c77f83b913c071c4fa25 (patch)
treed5881aefffcd9b943217161889e849dfb97df0ec /pod/perlsub.pod
parent42d1cefd9a529012253aff0d502edf7a4f6a6ac3 (diff)
downloadperl-4358a253560c226dd674c77f83b913c071c4fa25.tar.gz
remove whitespace preceding semicolon in docs
Message-ID: <20051031214827.GH24416@accognoscere.homeunix.org> p4raw-id: //depot/perl@26073
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod14
1 files changed, 7 insertions, 7 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 5054910297..71d6691e38 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -1400,17 +1400,17 @@ nest properly.
Examples of valid syntax (even though the attributes are unknown):
- sub fnord (&\%) : switch(10,foo(7,3)) : expensive ;
- sub plugh () : Ugly('\(") :Bad ;
+ sub fnord (&\%) : switch(10,foo(7,3)) : expensive;
+ sub plugh () : Ugly('\(") :Bad;
sub xyzzy : _5x5 { ... }
Examples of invalid syntax:
- sub fnord : switch(10,foo() ; # ()-string not balanced
- sub snoid : Ugly('(') ; # ()-string not balanced
- sub xyzzy : 5x5 ; # "5x5" not a valid identifier
- sub plugh : Y2::north ; # "Y2::north" not a simple identifier
- sub snurt : foo + bar ; # "+" not a colon or space
+ sub fnord : switch(10,foo(); # ()-string not balanced
+ sub snoid : Ugly('('); # ()-string not balanced
+ sub xyzzy : 5x5; # "5x5" not a valid identifier
+ sub plugh : Y2::north; # "Y2::north" not a simple identifier
+ sub snurt : foo + bar; # "+" not a colon or space
The attribute list is passed as a list of constant strings to the code
which associates them with the subroutine. In particular, the second example