cmikel has asked for the wisdom of the Perl Monks concerning the following question:
which helps me render this simple module.PerlModule Perl::Lib::Game::Hello PerlModule CGI <Location /game> SetHandler perl-script PerlHandler Game::Hello </Location>
if i visit localhost/game - this of of course produces 'Hello World!'. where i am lost is how to fit all the pieces together...i've read about TT and mod_perl and apache2...but I really can't figure out how fit the pieces of the puzzle together. if someone has a simple example that would help tremendously.package Game::Hello; use Apache2::Const -compile => qw(OK); sub handler { my $r = shift; $r->content_type('text/html'); $r->print("<html><body>Hello World!</body></html>\n"); return Apache2::Const::OK; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: console adventure game to html mod_perl version
by Anonymous Monk on May 14, 2013 at 04:57 UTC | |
|
Re: console adventure game to html mod_perl version
by Pizentios (Scribe) on May 14, 2013 at 13:20 UTC |