Surprisingly as I mentioned it works fine in a different server. I know I should try to get this perl module installed in the right way. I'll try to see if I can tweak something in the perl module itself to make it work for now.
Any suggestions in this regard would be much appreciated.