http://www.perlmonks.org?node_id=969243

jack123 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Eveyone, First of all I created one GUI with buttons,labels, texts using perl Tk, now after that i created that .pl script to .exe fil. Now I want another .pl script to be called by clicking on a button in that GUI. Right now it works fine by including this code in the parent perl script(.exe one) : sub update_script {system($^X, 'test2.pl', $ent -> get(), $ent_pass -> get(),$arg_32, @values, @names);} This function update_script is being called on one of the button in test1.pl or test1.exe Now the button on the test1.exe works fine on click and shows test2.pl output but in case if I put this .exe somewhere else then it says perl file unrecognized. Can someone tell me how to solve theses kind of errors? Regards, Jack