Its a C++ application that is calling one perl script that call one function in pm files in which I am using the system command to convert my input file to xml using java jar. So the script is neither running in command line nor I am directly opening the pl script by double clicking. It is internally called by C++ application.