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

I'm currently working on a program that basically waits for certain UDP messages on a particular port. This program is for an X session and i'm using Tk for the front end. I written a script in perl, that performs this socket function and it runs perfect in the Xterm the script is initiated from. I am having trouble getting the output from the script to pipe to a ListBox within the Tk program. Has anyone ever performed this type of output from a called script to a Listbox or something close to this. Please let me know at mef@t-netix.com ... thanks Michael

Edit kudra, 2001-07-06 Changed title from 'Perl/TK'

Replies are listed 'Best First'.
Re: Perl/TK
by Abigail (Deacon) on Jul 06, 2001 at 00:39 UTC
    Since you hardly write anything about your program or your problem, except an "it doesn't work", not much can be said. However, you should realize that programs using Tk are event driven. You will have to turn data appearing on the socket into an event. IIRC, there's a FileHandle widget for Tk. You might be able to use sockets with that. Or you might be able to use Event.pm, or POE.

    BTW, you really should use better titles. "Perl/Tk" is a *very* broad subject.

    -- Abigail