HTTP Request Handler Skeleton All HTTP Request handlers have the following structure: package MyApache2::MyHandlerName; # load modules that are going to be used use ...; # compile (or import) constants use Apache2::Const -compile => qw(OK); sub handler { my $r = shift; # handler code comes here return Apache2::Const::OK; # or another status constant } 1; First, the package is declared. Next, the m
{{#tags}}- {{label}}
{{/tags}}