in reply to Perl and Objects, how do you resolve the two?
From all that I've read here and elsewhere on OO Perl, it's not the same as any of the other major OO languages; you can break a lot of the typical rules that 'Object Oriented' applies to, and be selective about which rules that you want to use in your code when you do OO in Perl. The fact that Perl doesn't have strong type checking also allows many more rules to be broken. The best that you can do is at least encapsulate variables, have private and public functions, and provide new instances of an object as to keep everything working. While you could easily make a 100% complete OO perl program from that, most strive to instead to encapsulate as much as they can into objects, and then use standard procedural programming with object function calls as to simplify and increase the legibility of the code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Perl and Objects, how do strongyou/strong resolve the two?
by tye (Sage) on Apr 10, 2001 at 19:48 UTC | |
by tilly (Archbishop) on Apr 11, 2001 at 03:33 UTC | |
by tye (Sage) on Apr 11, 2001 at 07:51 UTC | |
|
Re (tilly) 2: Perl and Objects, how do strongyou/strong resolve the two?
by tilly (Archbishop) on Apr 10, 2001 at 22:58 UTC |