http://www.perlmonks.org?node_id=1029229


in reply to A couple questions about object oriented Perl programming: inheritance and error handling

Re: Multiple Inheritance and Base Class access:

These are covered in "perldoc perltoot" (Run at command line).
See the sections titled "Multiple Inheritance", "Inheritance" and "Overridden Methods".

These days, monks prefer to use "post-modern OO" implementations like Moose or it's minimalist imitation, "Moo".

Re: Error handling

You seem to be using CGI::Carp - if not, please do.
That includes examples of globalized error handlers.

Re: Redirection exit vs return

I think exit is fine. Others may have esoteric reasons for preferring "return".

             "I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
        -- Dr. Cox, Scrubs

  • Comment on Re: A couple questions about object oriented Perl programming: inheritance and error handling

Replies are listed 'Best First'.
Re^2: A couple questions about object oriented Perl programming: inheritance and error handling
by chromatic (Archbishop) on Apr 17, 2013 at 22:11 UTC
    Others may have esoteric reasons for preferring "return".

    In a persistent environment, exit might not do what you want.