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');
In reply to Re: Multiple Perl Files, Each With 1 Sub?
by perlson
in thread Multiple Perl Files, Each With 1 Sub?
by iaw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |