Re: Multiline comment in Perl

[email protected] ("Octavian Rasnita")
Newsgroups perl.beginners
Message-ID <005901c8b79f$320ff9d0$c2a2b451@teddy>
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" <[email protected]>
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/
>
>
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.