Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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

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
Node Status?
node history
Node Type: note [id://1029229]
help
Chatterbox?
[Lady_Aleena]: choroba, the tables in that group of modules is from the World Builder's Guidebook, so I thought it best to add the name of the book to the name of the module.
[choroba]: oh, I see
[Lady_Aleena]: There is the RolePlaying:: WorldBuilding:: WorldBuildersGuide book suite and the RolePlaying:: WorldBuilding:: HighLevelCampaigns suite.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-05-24 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?