Without having tried your script (and therefore guessing), but what happens if you comment out the print <$sock>; line just above the while loop?
I suspect that the print is 'draining' the socket, and by the time you reach the while loop, there is nothing left to read, so it hangs waiting for input which never arrives?
In reply to Re: Reading an XML page
by BrowserUk
in thread Reading an XML page
by Guildencrantz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |