Does anyone know if there's the equivalent for C/C++ preprocessor directives, for conditional compilation, eg:
I have OO modules (for mod_perl) and once in production certain expensive checks can (and need to) be omitted.
Is there something that allows blocks of code in PM files to be ignored if another something is set in calling scripts?
I don't want to add loads of tests for a global var.
Something in POD maybe?
I'd greatly appreciate any help or pointers.