Mojo::HelloWorld - Hello World!
use Mojo::Transaction::HTTP; use Mojo::HelloWorld; my $hello = Mojo::HelloWorld->new; my $tx = $hello->handler(Mojo::Transaction::HTTP->new);
Mojo::HelloWorld is the default Mojo application, used mostly for testing.
Mojo::HelloWorld inherits all methods from Mojo and implements the following new ones.
new
my $hello = Mojo::HelloWorld->new;
Construct a new Mojo::HelloWorld application.
handler
$tx = $hello->handler($tx);
Handle request.
Mojolicious, Mojolicious::Guides, http://mojolicious.org.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.