[geeks] One of these days....

James Sharp jsharp at psychoses.org
Tue Apr 16 12:42:20 CDT 2002


> I suspect that whatever process you have running on port 8888 is only
> returning a single response and while() isn't catching that.
>
> Try this:
>     while( defined($_=<$sock>) ) {
>
> Which should work and should detect an empty response. You might also
> make sure that no buffering is going on by setting $|=1 (autoflush).
>

Nope.  That didn't fix it.

I changed the while line to that, added $|=1 to the beginning of the
program, and made the "split" line a little less kludgy.



More information about the geeks mailing list