I am a new Perl coder. I just started working at a company that designs, builds, and sells servers. I am developing a GUI for Perl legacy code that runs tests on the servers (via Linux command line) in our production facilities in Asia. I started from scratch using Perl/Tk and I am having an issue. In the GUI I input user data, then hit a button, and that executes a subroutine that uses CLI to start the test script. I use Scrolled to make a text window which displays the stdout of the test script as it runs. At one point the test stops and asks for user input in the text screen. I use a conditional to execute a DialogBox at this point. How do I pass the value collected in the DialogBox to the other script? Been struggling for awhile with this, please give me guidance informed travelers... PS~ I have no choice about using a GUI; this was a command directive to appeal to the lowest common denominator.

In reply to Passing a Value by RepoJuice

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.