Here's the example/http.py from Mongrel2 ported to perl.
And what your myconfig will look like:
handler_test = Handler(send_spec='tcp://127.0.0.1:9997', send_ident='82209006-86FF-4982-B5EA-D1E29E55D481', recv_spec='tcp://127.0.0.1:9996',recv_ident='')
r'/handlertest': handler_test