Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by NetWallah (Canon)
on Apr 17, 2013 at 21:20 UTC ( [id://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

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-19 02:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found