Rails to Dancer perl script