I too, used to have a bit of trouble wrapping my head around OOP. Tried Java at home, but without any real projects, it was just playing, and nothing sunk in.
So what I did was this: I purchased Damian Conway's book on OO Perl, and took in as much as I could. Then, for my next couple of Perl projects, I used OO rather than procedural logic, even though OO wasn't really required. It just forced me to get used to the idiom, and when I got stuck, I'd return to D's book. Now, when I use Java or even C#, I'm easily splip into OO mode.
(BTW: now that I've got what I needed out of OO Perl, I don't use it that much. I like it, but my work generally requires me to knock up quick scripts, and OO Perl isn't really required. However, I'm grateful to the CPAN contributors who offer OO interfaces -- they make my life easier)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.