develooper Front page | perl.beginners | Postings from February 2002

RE: simple commenting question ...

Thread Previous
From:
Hanson, Robert
Date:
February 1, 2002 08:08
Subject:
RE: simple commenting question ...
Message ID:
11A304418ECBAB498FBF10ABCEA5E499D1CDD9@hq2kax1.nj.aptegrity.com

Yes. ...Sort of.

=pod
$x = 1;
 ...
$y = 2;
=cut

The =pod and =cut are usually used for documentation but works for
commenting out chunks of code as well.  Currently there are no other
mechanisms (unless you want to put it all in a if(0){} block :).

Rob

-----Original Message-----
From: Pfeiffer, Richard [mailto:richard.pfeiffer@retek.com]
Sent: Friday, February 01, 2002 11:02 AM
To: 'beginners@perl.org'
Subject: simple commenting question ...




Can I comment an entire block of code with comments at
just the beginning and end of the block instead of having 
to put a # at the beginning of each line?  If so, what is the
symbol?

Thank You!

-Richard



-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About