Re: Commenting Perl code

2006-11-29 Thread Ken Foskey
On Tue, 2006-11-28 at 08:03 -0500, Robert Hicks wrote: > Do you use the regular "#" or inline POD statements? POD describes the programs purpose and how to use it. # comments describe tricky code or coding decisions. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Commenting Perl code

2006-11-28 Thread Robert Hicks
Adriano Ferreira wrote: On 11/28/06, Robert Hicks <[EMAIL PROTECTED]> wrote: Do you use the regular "#" or inline POD statements? Both. # is proper for intimate comments of the implementation code, like: $META ||= CPAN->new; # In case we re-eval ourselves we need the || # from http://se

Re: Commenting Perl code

2006-11-28 Thread Adriano Ferreira
On 11/28/06, Robert Hicks <[EMAIL PROTECTED]> wrote: Do you use the regular "#" or inline POD statements? Both. # is proper for intimate comments of the implementation code, like: $META ||= CPAN->new; # In case we re-eval ourselves we need the || # from http://search.cpan.org/src/ANDK/CP

RE: commenting perl

2002-04-24 Thread Jaremy Creechley
The best way I have found is to use the =cut then =cut =cut comment foo foosub =cut with no spaces. There is also a method used for cutting out HTML automatically. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: commenting perl

2002-04-24 Thread Garrett Moylan
I know this isn't really answering your Q but... you could try downloading TextPad from www.textpad.com and installing one of the many macros available at http://www.textpad.com/add-ons/macros.html This allows you to highlight a series of lines and click on the comment macro to add #'s before ea

RE: commenting perl

2002-04-23 Thread Mike Rapuano
=cut multi line comment =cut __DATA__ Mike -Original Message- From: Shaun Fryer Sent: Tue 4/23/2002 6:37 PM To: Perl Beginners Cc: Subject: commenting perl Is there a simple way to c

Re: Commenting.

2001-10-24 Thread Brett W. McCoy
On Wed, 24 Oct 2001, SAWMaster wrote: > Is there a way to "block comment" in Perl? > > My book only covers using # to comment individual lines. > > Is there a symbol I can use to comment out entire sections of code for > the debugging process? You basically use embedded POD directives. perldoc

RE: Commenting.

2001-10-24 Thread Kipp, James
If your working in vi , you could do: :1,10s/./# &/ which will comment lines 1 to 10 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Commenting.

2001-10-24 Thread Curtis Poe
--- SAWMaster <[EMAIL PROTECTED]> wrote: > Is there a way to "block comment" in Perl? > > My book only covers using # to comment individual lines. > > Is there a symbol I can use to comment out entire sections of code for the debugging >process? I like to use a debugging constant. use con

Re: Commenting.

2001-10-24 Thread Casey West
On Oct 24, 2001 at 03:54 -0400, Heely, Paul took the soap box and proclaimed: : I have used: : : if(0) { : BLOCK OF CODE : } : : or : : =item comment : : BLOCK OF CODE : : =cut You could also take advantage of here docs: print "foo\n"; <<__COMMENT__; This is my block comment!

RE: Commenting.

2001-10-24 Thread Wagner-David
I use =head1 and =cut to either make comments or to remove a section of code but keep. Wags ;) -Original Message- From: SAWMaster [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 12:44 To: [EMAIL PROTECTED] Subject: Commenting. Is there a way to "block comment" in

RE: Commenting.

2001-10-24 Thread Heely, Paul
I have used: if(0) { BLOCK OF CODE } or =item comment BLOCK OF CODE =cut --Paul > -Original Message- > From: SAWMaster [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 24, 2001 3:44 PM > To: [EMAIL PROTECTED] > Subject: Commenting. > > > Is there a way to "block comment" in P