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.


In reply to Re: How to learn Object Oriented programming in Perl ? by Erez
in thread How to learn Object Oriented programming in Perl ? by marscld

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.