|Syntactic Confectionery Delight|
Re: Re: Debug code out of production systemsby liz (Monsignor)
|on Jan 25, 2004 at 00:09 UTC||Need Help??|
While it is clear how it does the trick, it is really misleading about what the pragma does.
I have some of that feeling as well. But please note that this pragma is only intended to be called from the commandline (it actually emits a warning when you're trying to use it inside a script). So my thinking was, use "begin" as a pragma to activate certain =begin pod sections.
I would rather have a debug pragma
...a quick search and replace in your module shows that it can be done...
...as a pragma with two parameters, one for the tag and one for the label to activate.
... the code after the POD block disappears.
becomes after conversion:
which makes clear why the code disappears. I could check for that at the expense at a more complex filter. Or add another CAVEAT. Probably the first.
Thanks for the feedback.