http://www.perlmonks.org?node_id=1003522


in reply to Re: Passing hash reference over tcp client/server
in thread Passing hash reference over tcp client/server

Actually, since the OP is using Data::Dumper, it would be better to change to this:
print "Received from Server :\n", Dumper( $data1 );