Assuming you are on *nix you should be getting some kind of indication of why perl was terminated. Since you are printing on sockets my immediate wild guess would be terminated for writing to a broken pipe. Try installing signal handlers using %SIG{xxxx} to see if you are being terminated like that.
Finally, if you are writing a server, just fork before you start printing. That way you don't care if the printing process dies or not.
____________________
Jeremy
I didn't believe in evil until I dated it. |