use MyModules::Config; # here's the singleton magic: # "new" recalls the existing instance if any. my $conf=Config->new();