All, I have a Tk app that launches an external program via system.
system $exec_string if ( $AUTO_LAUNCH and $file_name );
This successfully launches my program, but the Tk GUI hangs until I exit out of the app. I know this is the documented behaviour of the system function.
My desired behaviour for this application is to launch the external program, keep it open for future manipulation, but allow the perl script to return and be able to launch another instance of the external program.
I have attempted using exec, but this completely closes down my script. I have tried eval'ing the exec, and that doesn't work. I have tried wrappig the exec in another block, and I couldn't get that to work either. I read about IPC::Cmd, and I couldn't get that to work either.
Is it possible to do what I want? Can someone point me to references on how to accomplish this?
Thanks, David

In reply to Launch External App in Tk And Return by ~~David~~

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.