$ cat > pm_config_any.ini some_key=qwerty password=Pa55w0rd other_key=zxcvbn #### $ perl -Mstrict -Mwarnings -E ' use Config::Any; use Data::Dumper; my $pw_ini_file = q{./pm_config_any.ini}; my @files = ($pw_ini_file); my $cfg = Config::Any->load_files({files => \@files, use_ext => 1}); say q{Full $cfg structure:}; say Dumper $cfg; say q{Password: }, $cfg->[0]{$pw_ini_file}{password}; ' Full $cfg structure: $VAR1 = [ { './pm_config_any.ini' => { 'password' => 'Pa55w0rd', 'some_key' => 'qwerty', 'other_key' => 'zxcvbn' } } ]; Password: Pa55w0rd