in reply to Client writing

If you want to write a simple TCP client then the IO::Socket modules may be the thing for you, they deal with most of the fiddly coding that comes with this sort of thing. As for retrieving those ints I get the feeling that unpack() will be the function of choice, as it works a treat on binary data.
HTH

broquaint