the code i posted is just an example to demonstrate my problem with fifos.
i am using select() because sometimes i want to return from waiting for input.
select($rin,undef,undef,$timeout)
i am not using $buf = <FH> because i thought your not supposed to use it when you use select()