in reply to Re^5: ifdef in modules
in thread ifdef in modules
Ah...so I wasn't close at all :)
Well, your explanation makes sense, thanks. Unfortunately, that still leaves me at an impasse. There's little value in adding 'use ifdef;' to all my modules, since the whole point of my using it is so that sections tagged with DEBUGGING will only activate during development, but be ignored in production, without any changes to the code. With 'use ifdef;' at the top of every module, I'd have to take it out when promoting to production (since production will not have ifdef). I could just as easily take out the debug code itself instead.
I suppose I could try 'use if $ENV{DEBUGGING}, ifdef;', but it just feels like what seemed like an elegant debugging solution in ifdef now requires too many workarounds.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: ifdef in modules
by Tanktalus (Canon) on Jun 15, 2005 at 02:32 UTC | |
by clee (Novice) on Jun 15, 2005 at 17:07 UTC |