use Config::Any; my @plugins = ('Config::Any::INI'); my $cfg = Config::Any->load_files( {files => \@filepaths, force_plugins => \@plugins} );