I know that =start is not a valid POD command, but it doesn't break the program. When I use it, I don't need to use it to add real POD docs, so the commands shouldn't be valid.

=head1 NAME
is too long...

Octavian

----- Original Message ----- From: "John W. Krahn" <[EMAIL PROTECTED]>
To: "Perl Beginners" <beginners@perl.org>
Sent: Friday, May 16, 2008 7:53 PM
Subject: Re: Multiline comment in Perl


Octavian Rasnita wrote:

----- Original Message ----- From: "sivasakthi" <[EMAIL PROTECTED]>

How to comment Multiple lines  in Perl?

Perl doesn't have a multiline comment mark.

You can use perldoc marks in order to comment what you want, or include the content in a string, like:

Perldoc style:

=start
Here
are the
lines you
want to comment
=cut

$ echo "

=start
Here
are the
lines you
want to comment
=cut

" | podchecker
*** ERROR: Unknown command 'start' at line 3 in file <standard input>
<&STDIN does not contain any pod commands.



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to