Over the long haul I've made a couple of programs that use sockets but still I
don't understand to very basics of it yet. That is how to properly send and
receive the data. So far what I have been doing is thus:

$client = IO::Socket::INET->new('server');

while (<$client>) {
    chomp;
    next unless $_;
....

But doing it that way I sometimes have weirdness where I receive nothing yet
the 'next unless' statement doesn't catch it for some reason. For sending I
usually just print to the $client variable like a filehandle. I'm just
wondering if this is the right way that I should be doing it. Doing it
way I currently am seems to result in a lot of flakeyness.

So any help in setting me on the right course would be very appreciated.

Thanks.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to