I have tried fileevent before and could not make it work so its one of a few things either A im not doing it right most likely. B I'm have all these problems due to the splitting into two process probably not. Or C how I'm handling the connection. Or D all of the above lol.
UPDATE: It was D all of the above! I got it to work. The only problem is while(<$sock>) seems not to work only if its if (<$sock>) Thanks man!!!