use Module; $Module::configvar = 1; print Module::menu(); # <- this works, configvar is set, but # not when invoking other subs from the options in menu().