in reply to Serial port losing data

i think the problem is here: select((select(SERIAL), $| = 1)[0]);, and it results from the usage of  $|. i suppose you localize it.

--------------------------------
masses are the opiate for religion.