in reply to Re^3: Advice on perl socket activity
in thread Advice on perl socket activity

my $ok = $t->put(String => "echo HELLO\n", Timeout => 10, Errmode => "return");
very nice code. If it took 3 secs for the echo HELLO to complete, and in that 3 secs there was output, wouldn't the output get dropped ? Thanks update: I think I have something workable, using print instead of put, I am not missing anything yet. Print has no timeout. Thanks for your prodding.

Replies are listed 'Best First'.
Re^5: Advice on perl socket activity
by gmargo (Hermit) on Nov 06, 2009 at 15:58 UTC

    No. The socket connection takes care of that. You'll get() it on the next loop.