a simple rest server implemented by perl