The problem I had was that the server didn't have the correct modules installed. So after installing the Config::IniFiles on the server it worked perfectly.
to my "headers" list and it printed out the problems I was facing perfectly when I ran it on the server.
Thank you to both Mr Mischief and Anonmyous Monk who replied.