I am writing a little website with Mojolicious::Lite (highly recommended, even though the docs are not great, yet; the package itself is).
I am wondering whether it makes sense to stick each webpage (which is roughly a get '/webpage' => sub { ... }) into its own .pl file. because they are more like .pl files than .pm files, I could glob through the directory for .pl files and then concat and eval them.
Numerical Recipees in C/Fortran/etc. organized itself roughly like this, too.
I am probably not the first to run into this issue. What is the best practice here?
/iawIn reply to Multiple Perl Files, Each With 1 Sub? by iaw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |