summaryrefslogtreecommitdiff
path: root/pod/perlsyn.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-03-25 10:39:02 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-03-25 10:39:02 +0000
commitf00f6914c1324e1033f4c97376db36a06ca8a53b (patch)
treeab2340c0690c023db06a58814b5db850964d1ed2 /pod/perlsyn.pod
parent7185e5cc30e619cebead08968623dc42feff8b7e (diff)
downloadperl-f00f6914c1324e1033f4c97376db36a06ca8a53b.tar.gz
clarify what a "comment" means (due to Mark-Jason Dominus
<mjd@plover.com>) p4raw-id: //depot/perl@3167
Diffstat (limited to 'pod/perlsyn.pod')
-rw-r--r--pod/perlsyn.pod14
1 files changed, 7 insertions, 7 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index 832123507b..a3bc5ab547 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -21,13 +21,13 @@ mandatory default like it is in B<sed> and B<awk>.)
=head2 Declarations
-Perl is, for the most part, a free-form language. (The only
-exception to this is format declarations, for obvious reasons.) Comments
-are indicated by the C<"#"> character, and extend to the end of the line. If
-you attempt to use C</* */> C-style comments, it will be interpreted
-either as division or pattern matching, depending on the context, and C++
-C<//> comments just look like a null regular expression, so don't do
-that.
+Perl is, for the most part, a free-form language. (The only exception
+to this is format declarations, for obvious reasons.) Text from a
+C<"#"> character until the end of the line is a comment, and is
+ignored. If you attempt to use C</* */> C-style comments, it will be
+interpreted either as division or pattern matching, depending on the
+context, and C++ C<//> comments just look like a null regular
+expression, so don't do that.
A declaration can be put anywhere a statement can, but has no effect on
the execution of the primary sequence of statements--declarations all