in reply to Re^3: Main routines, unit tests, and sugar
in thread Main routines, unit tests, and sugar
Any important code resides under one App::MyApp namespace, and not split across App::MyApp and myapp.pl
It was mostly humour, but ... you still need myapp.pl in order to invoke your application.
Which means you added an extra file (your App::MyAPP.pm) -- and an extra level of callback trace to every error message, etc. etc. -- and made the (still) required file almost empty and what did you gain?
IMO nothing. You added the need to chase off and track through where this module file lives -- not always obvious with lib, site/lib, site/vendor/lib, use lib et al. -- just in order to see what it does; what its dependencies are ...
That almost empty file, the .pl, is still used. What is the point in adding an extra file in order to make this one almost empty? There is no logical justification for it.