Thanks for the buffering explanation, but unfortunately it's still not working.
On 11/10/2007, Amos Shapira <[EMAIL PROTECTED]> wrote: > > On 11/10/2007, Shane Anderson <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I don't believe it's IO buffering as $recv prints out fine if I don't do > a > > chomp();, but I'll give it a shot. > > > If the socket is in line buffering then maybe the newline at the end of > $recv causes the buffer to be flushed. > > Try: > > $client->send("Works! Received: \"$recv\"\n"); > > (I generally like to surround such output with quotes so you know where > exactly to look for the string) > > Reading "man IO::Socket" on Debian Etch I see a big notice near the > beginning: > > As of VERSION 1.18 all IO::Socket objects have autoflush turned > on > by default. This was not the case with earlier releases. > > So try maybe also $client->autoflush(1); > (I'm not sure the "$|=1" suggested by David would help, it's supposed to > work only on the currently selected output stream). > > --Amos > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html