Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by NetWallah (Abbot)
on Apr 17, 2013 at 21:20 UTC ( #1029229=note: print w/ replies, xml ) Need Help??


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
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029229]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-07-14 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (253 votes), past polls