in reply to Multiple Perl Files, Each With 1 Sub?
The best practice here is to switch from Mojolicious::Lite to Mojolicious.
If you don't like the shorthand available for specifying your route destinations, you can use the namespace option like:
my $r = $self->routes(); $r->route('/foo')->to(namespace => 'Some::Module', action => 'someSub' +); $r->route('/bar')->to(namespace => 'Another::Module', action => 'anoth +erSub');
|
|---|