Then tried to refer to it from module1.pm, $c = main::CFGDIR