diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-03-25 10:39:02 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-03-25 10:39:02 +0000 |
commit | f00f6914c1324e1033f4c97376db36a06ca8a53b (patch) | |
tree | ab2340c0690c023db06a58814b5db850964d1ed2 /pod/perlsyn.pod | |
parent | 7185e5cc30e619cebead08968623dc42feff8b7e (diff) | |
download | perl-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.pod | 14 |
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 |