That's a good question, I'm not sure. It'd be nice if I could implement this idea as it seems to be the best solution to the problem. But from your sample it seems that I would need you to hold my hand most of the way through it - or I'd need to read and absorb most of "Advanced Perl Programming", which I find an even less enticing option than contorting my original script around Tk's logic. I assume you probably don't want to do it, and anyway, I don't like to ask people to do my projects for me and/or write detailed 10-page howtos for solving my specific problem...
If you think you can enlighten my about how to do this in a couple of comments added to the above code and add the code for generating a widget based on specific strings printed to the original script's STDOUT, that'd be great. I was just reluctant to ask you to do it because it's too much like spoonfeeding.
The danger is that if something breaks or needs changing in the interface between the original script and the GUI module, I won't be able to fix it, but I guess that's not very likely.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||