in reply to Solution: Don't know why it works...
in thread IO::Select & ssh problem
By the way, all your LINE lines are being printed to STDERR, since you made that handle the default using select.
Easiest solution: replace
withselect(STDIN); $|++; select(STDOUT); $|++; select(STDERR); $|++;
or justuse IO::Handle; STDOUT->autoflush(); STDERR->autoflush();
$| = 1;
It's useless to set autoflush on an input handle, and STDERR is already autoflushed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Solution: Don't know why it works...
by cmv (Chaplain) on Sep 22, 2009 at 12:47 UTC |