I always use an if debug option like below, its so handy, so that you can
put all your debug output here. you can do different levels here too to make
things really funky :)
Pat
On Jan 16, 2008 7:17 AM, Jeremy Kister <[EMAIL PROTECTED]> wrote:
> On 1/15/2008 3:09 PM, S.A. Birl wrote:
> > Sometime
From: "J. Peng" <[EMAIL PROTECTED]>
> you may consider to use a pod section for commenting out a code block.
> I have used these ways, maybe not good, but they can be used.:)
>
> 1) put the code block in a subroutine,and never call that routine.
> sub no_use {
> code block
> }
>
> 2) assign t
S.A. Birl wrote:
Sometimes I find the need to comment out a block temporarily.
My roots go back to C where I could quickly throw a
#if 0
#endif
around a section of code to prevent a section of getting compiled.
is there something similar for PERL?
No, but there is something for Perl[1]:
perld
you may consider to use a pod section for commenting out a code block.
I have used these ways, maybe not good, but they can be used.:)
1) put the code block in a subroutine,and never call that routine.
sub no_use {
code block
}
2) assign the code block to a variable, and never use that variab
On 1/15/2008 3:09 PM, S.A. Birl wrote:
Sometimes I find the need to comment out a block temporarily.
My roots go back to C where I could quickly throw a
#if 0
#endif
if(0){
[...]
}
--
Jeremy Kister
http://jeremy.kister.net./
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm