in reply to can't write to file from socket

I wonder if you are constantly overwriting your output file. Perhaps change to:

OPEN FILE, ">>output" or die "Can't open: $!";
1 Peter 4:10

Replies are listed 'Best First'.
Re^2: can't write to file from socket
by femerrill (Initiate) on Aug 04, 2014 at 17:57 UTC

    Looks like you may have the solution! Thanks.