Object Oriented means to Perl (not PERL, by the way) mostly that you have a blessed reference (object) or a string (class), on which you can call a method. A module on CPAN certainly is not the central point, as packages can contain methods for objects, but they can also export normal functions. CPAN has nothing to do with that.
| [reply] |
Read these basic perldocs for the Larry-style objects:
perlobj, perltoot, perlboot, overload.
(These are just the most basic ones, see perldoc perl
for a more complete list.)
There are some CPAN modules for other object models.
| [reply] |
First, it's not "PERL", it's "Perl" :-)
Second, no, a CPAN module is not an object. A CPAN module may or may not implement an object, but that's a different story.
Basically, a module can provide you with functions, or it can provide you with a way to create an object (a virtual object) which has methods you can call (or it can also do both).
See the documentation ambrus talks about. | [reply] |