in reply to Confusing Socket Error

Your stuff is just okay, it didn't get flushed to screen right the way as there is no return at the end.

Just do

$|++;
at the beginning of your code.

Replies are listed 'Best First'.
Re: Re: Confusing Socket Error
by devslashneil (Friar) on Oct 24, 2003 at 15:04 UTC
    Hi,
    I tried what you said, but it seems to have no effect :)
    Thanks anyway though

    Neil Archibald
    - /dev/IT -
      Do some more printing, to see where everything goes, at least while you're investigating:

      my $buf = <$client>; my $whatitwas = $buf; print 'Chomping ', chomp $buf, " chars\n"; print "It used to be $whatitwas, but now it is $buf\n";

      Have you modified $/ at all?