Well, it all depends on what you want to dispatch off of. If you like the REST-ish URLs, then you might want to dispatch from path_info. If you don't care about URLs, then you can just simply pass in another parameter to dispatch on. I would put all this logic inside the ->handler method and have it call other methods.
However, all this said, you really should just use a pre-existing tool, it will save you TONS of time in the long run. If size and learning curve is an issue, then I highly recommend CGI::Application. It is much simpler then Catalyst or Jifty, and will give you all the basic things you will need with very little overhead and few dependencies.
| [reply] |