in reply to Re^2: multiple socket streams
in thread multiple socket streams

but that's not really what i would call an elegant solution.

Yes, it sucked :-)

What about doing a shift in the socket, matching what's returned against alphanum, and if nothing, move out of the sub ?

Replies are listed 'Best First'.
Re^4: multiple socket streams
by Forsaken (Friar) on Jun 07, 2004 at 04:57 UTC
    nah, it seems i was once again suffering from severe foot-in-mouth syndrome, and zaxo was indeed right on the money suggesting IO::Select. What the problem basically comes down to is using <> on a filehandle that has no data waiting, resulting in the script freezing until some data comes along. IO::Select's ability to tell you in advance if there is data allows me to avoid that issue, hence fixing my problem.

    Great thanks to all of those who replied, Zaxo in particular :-)
      I definitely have to try IO::Select !!