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
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
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
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]
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
=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
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
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]
--- 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
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!
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
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
12 matches
Mail list logo