Without thread created on the concerned subroutine(run_script)that worked, but when I created thread on subroutine it is failing to do so which made me concluded it is not loading.
Anyway now it is loading, but I am facing modules interface problem in the thread because the loaded file(add.pl) has different modules in it( example I am using Device::Modem::GSM module in add.pl). So when the thread is going into the modem file it is not able to call certain methods. It is giving error to call the methods on execution.
And as you can see Device::Modem::GSM is built on other modules like Device::Modem, Device::Serialport. So the problem is getting complicated.
If I make any changes in the Modem modules my application will not be portable on machines.
Any solutions please.............