Re: Multiline comment in Perl

[email protected] ("John W. Krahn")
Newsgroups perl.beginners
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.