I am using a module (Mail::SPF::Iterator) which exports a constant to enable debugging output:
use Mail::SPF::Iterator Debug =>1; # enable debugging
How can I set this constant later in the code for example depending on a condition?
if ( my condition ) {
# set Debug to 1
}