in reply to Best practice for handling subroutines that are conditionally loaded?
In general, it might help to name your routines with a common tag so they are easy to find. For example my_debug_d0.sub d0 { if($ENV{MYMOD_DEBUG_LEVEL} >= $my_level) { doThis; } else { doThat; } }
|
---|