In addition to wiser monks's words, i suggest you to read
Damian Conway's ten rules for when to use OO.
Also, (consider that me i'm a self-made programmer, with no real experience in OO writing, only some aMooseMent..), it seems to me OO become useful in multi programmer env: the layer created by the OO design separates logic from interface (to the software). Programming is definetively an interface matter.
Consider another feeling: Perl is very democratic. When you approach a problem to resolve, you could be naturally inclined to describe it in a OO fashion: no problem: write down some Moose class, and run some instancieted voodoo against them.
Or by other hand you suddenly visualize a cached multilevel datastrcture returned by a closure and a jaggling way to manipulte it and to serialize it... go on on your way.
Another thing: when you'll need to maintain the code, what do you prefere? puzzling in possibly big a complex file or be mazed in a directory tree and in a meta-file hierarchies?
HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
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.