I am using constant mainly to enable printing of debugging messages (e.g. use constant DEBUGGING_L1 => 0;)
Normally, the value is '0' and when I need to see debug messages, I make this 1 and run the script. Is there a way to allocate value to constants at run time so that I can avoid editing the script again and again?
Also, is there a better way to handle debugging?