Execution difference in perl scripts for windows / AIX

Hi,

I have perl script abc.pl which runs perfectly fine on windows ( execution from cmd).
Now i tried to execute the same perl module on the AIX server after defining the captureoutput.pm and other relevant changes.

But its behaving very weirdly as a portion of the URL which is formed by concatenating 2 other url's as part of the script is not found when run on AIX and the perl script fails saying "could not form the URL".
The same is running perfectly fine on Windows.
e.g.
On windows :

On AIX :

Kindly help

Perhaps you can run PERL with verbose error reporting and post the output?

Please check the perl version on both the OS

The version is same on both the OS.. 5.8.8