Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Debug code out of production systems

by liz (Monsignor)
on Jan 25, 2004 at 09:52 UTC ( #323949=note: print w/replies, xml ) Need Help??


in reply to Re: Debug code out of production systems
in thread Debug code out of production systems

If you feel that C-like pre-processor directives are really second nature to just about everybody who uses Perl, then you could try "=ifdefined" -- this wouldn't be any worse that "=begin"
Well, I admit being inspired by C preprocessor's directives. Ideally, I would like to use the =if, =ifdef, =elseif and =else and =endif family. However, any of these will cause severe noise with even the standard pod2html and pod2man utilities. And worse, it will include them inside the generated documentation!

Maybe I should call the pragma "ifdef" and support all of the above pod markers and include =begin and =end (good point "Mr. Muskrat") as synonyms that can be used in the current code base without upsetting current pod parsers?

Liz

  • Comment on Re: Re: Debug code out of production systems

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://323949]
help
Chatterbox?
[Lady_Aleena]: Hello everyone. I'm having a blonde moment. I can push an array to an array, right? push @to_array, @another_array;
[shmem]: of course
[shmem]: the members of @another_array are conflated to @array
[shmem]: try it out:
[Lady_Aleena]: shmem, thanks. I'm am way out of practice.
[shmem]: perl -lE '@foo = (0..3);@bar = (4..7); push @foo,@bar; say for @foo'
[Lady_Aleena]: shmem, I feel like an idiot for forgetting something so basic.
shmem puts a big cauldron of "silly con charme" on the table in the refectorium

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-04-27 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.