[Dancer-users] Modular approach without anonymous subrefs

Alex C calyx238 at gmail.com
Mon Sep 24 15:24:31 CEST 2012


On 23 September 2012 01:27, gvim <gvimrc at gmail.com> wrote:
> I'm converting a CGI::Application web app to Dancer and have always used a
> modular approach so am I missing something if I prefer to do it this way:

I think this is a very nice technique. My Routes.pm is growing to
>3000 lines and I think I will refactor it using this same technique
you have suggested.

The only disadvantage I can think of, is if you have many routes, then
that might slow down startup as each file has to be read from disk.

Alex


More information about the Dancer-users mailing list