Smallest mod_perl application (almost) 

package MyApplication;

# yes, these are necessary (even in the smallest app ever)
use strict;
use warnings;

use Apache;
Apache->import();

sub handler {
    my $r = shift;

    $r->content_type('text/plain');

    $r->print('Hello world!');

    return Apache::OK;
}