Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance for the help.build_gui(); ## sets up the gui_interface exit; sub build_gui { ## sets up a button and other widget)} ## invoked when user pressed a button sub event_handler { $handle = IO::Socket::INET->new("$host:$port"); while (<$handle>) # my program freezes here as it # waits for data in the socket { ## do stuff and then updates the GUI interface } }
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is it possible to wait for data in a socket 'in the background'?
by AgentM (Curate) on Feb 13, 2001 at 03:17 UTC | |
|
Re: Is it possible to wait for data in a socket 'in the background'?
by dash2 (Hermit) on Feb 13, 2001 at 23:16 UTC |