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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|