A simple echo server in java with a perl client