Your code worked for the above .ini file when i added use feature "say". However for my password.ini file it still prints the password as a reference. (only the last line though). Any idea why this is happening? Also how would i store this into a string.
say q{Password: }, $cfg->[0]{$pw_ini_file}{password};