Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

does mod_perl support object oriented perl?

Replies are listed 'Best First'.
Re: Mod_perl and object oriented perl
by blakem (Monsignor) on Oct 16, 2001 at 10:31 UTC
    Yes, mod_perl has a fully-functional, all-singing, all-dancing perl interpreter embeded inside apache that can do everything a normal perl binary can.... including OO.

    -Blake

Re: Mod_perl and object oriented perl
by alien_life_form (Pilgrim) on Oct 16, 2001 at 19:25 UTC
    Greetings.
    Yes it does - as stated above - however be sure to read carefully the documentation regarding namespaces and recompilation issues, especially when running under Apachee::Registry.

    This said, the good news is that the OO coding style (or rather,a module oriented approach) will shield you from most of the pitfalls connected to MPWODT (mod_perl's way of doing things).

    Cheers,
    alf

Re: Mod_perl and object oriented perl
by echo (Pilgrim) on Oct 16, 2001 at 23:43 UTC
    In addition to what's been said, you can even write object-oriented mod_perl handlers. These will be invoked as methods, can inherit from other classes, etc.

    perldoc mod_perl_method_handlers gives more information and examples on this cool feature.