diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-08 18:56:58 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-08 18:56:58 +0000 |
commit | f05bbc4047b4e519eb0edbaf2fce2004f4838d1a (patch) | |
tree | de226ce5a9d015aefd62d1b704bb24f8d232801f /pod/perlfaq7.pod | |
parent | fdd579e2dc5d0da16b7e86246a01f0d838120df7 (diff) | |
download | perl-f05bbc4047b4e519eb0edbaf2fce2004f4838d1a.tar.gz |
FAQ sync. (Ignoring the few URL differences for now.)
p4raw-id: //depot/perl@15813
Diffstat (limited to 'pod/perlfaq7.pod')
-rw-r--r-- | pod/perlfaq7.pod | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pod/perlfaq7.pod b/pod/perlfaq7.pod index 96c5870d81..008f433124 100644 --- a/pod/perlfaq7.pod +++ b/pod/perlfaq7.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq7 - General Perl Language Issues ($Revision: 1.7 $, $Date: 2002/01/31 04:27:55 $) +perlfaq7 - General Perl Language Issues ($Revision: 1.8 $, $Date: 2002/03/26 15:48:32 $) =head1 DESCRIPTION @@ -741,7 +741,8 @@ not necessarily the same as the one in which you were compiled): =head2 How can I comment out a large block of perl code? -Use embedded POD to discard it: +You can use embedded POD to discard it. The =for directive +lasts until the next paragraph (two consecutive newlines). # program is here @@ -750,6 +751,9 @@ Use embedded POD to discard it: # program continues +The =begin and =end directives can contain multiple +paragraphs. + =begin comment text all of this stuff @@ -759,11 +763,12 @@ Use embedded POD to discard it: =end comment text - =cut +The pod directives cannot go just anywhere. You must put a +pod directive where the parser is expecting a new statement, +not just in the middle of an expression or some other +arbitrary s grammar production. -This can't go just anywhere. You have to put a pod directive where -the parser is expecting a new statement, not just in the middle -of an expression or some other arbitrary yacc grammar production. +See L<perlpod> for more details. =head2 How do I clear a package? |