Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to learn Object Oriented programming in Perl ?

by Erez (Priest)
on Apr 22, 2008 at 08:42 UTC ( [id://682116]=note: print w/replies, xml ) Need Help??


in reply to How to learn Object Oriented programming in Perl ?

I always recommend learning by doing. A lot of CPAN modules expose an OO interface, allowing you to instantiate and inherit from them. Using those modules is an excellent way to ease into Perl OOP concepts. After you're there, learning how to create a class, and other OOP concepts used in Perl is much easier.

Trying to rebuild Perl application to Object Oriented style

However, this brings up the question, whether you are trying to rebuild an application in OO simply to make it OO, or is there a real need there. If something is already built in a procedural way, and works fine, rebuilding it just to make it OO can cause more harm than profit. Perl have ways to interface with such an application that allows creating OO-based components and you might learn better from interfacing with it whether it should be re-written at all.

Software speaks in tongues of man.
Stop saying 'script'. Stop saying 'line-noise'.
We have nothing to lose but our metaphors.

  • Comment on Re: How to learn Object Oriented programming in Perl ?

Replies are listed 'Best First'.
Re^2: How to learn Object Oriented programming in Perl ?
by marscld (Beadle) on Apr 22, 2008 at 08:57 UTC
    Thanks for all the reply. You guys have shown a good way for me. Erez, thanks for the reminder. In fact, I'm going to review an existing procedural application and try to make it work in OO way, and to decouple connections between some modules.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-23 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found