http://www.perlmonks.org?node_id=971794


in reply to Config::IniFiles Carriage Returns

Try setting $\ = "\r\n"; ($OUTPUT_RECORD_SEPARATOR for those who use english;) before writing out the ini-files. Windows just *loves* its CRLFs :)
I'm not sure if Config::IniFiles respects this variable, but it's worth an attempt.