# MyApp::Config MyApp->config_class('Config'); # MyApp::Config::JSON MyApp->config_class('Config::JSON'); if you want to use fully qualified class name, use plus sign prefix.