That's not fun yet. Same number of characters, all constant, no
variables. But yet, the parts are separable now. Watch:
- $x = "Cow";
- $x->speak; # invokes Cow->speak
+ $a = "Cow";
+ $a->speak; # invokes Cow->speak
Ahh! Now that the package name has been parted from the subroutine
name, we can use a variable package name. And this time, we've got
or the equivalent:
- $x = "Class";
- $x->method(@args);
+ $a = "Class";
+ $a->method(@args);
which constructs an argument list of:
For more information, see L<perlobj> (for all the gritty details about
Perl objects, now that you've seen the basics), L<perltoot> (the
-tutorial for those who already know objects), L<perlbot> (for some
-more tricks), and books such as Damian Conway's excellent I<Object
-Oriented Perl>.
+tutorial for those who already know objects), L<perltootc> (dealing
+with class data), L<perlbot> (for some more tricks), and books such as
+Damian Conway's excellent I<Object Oriented Perl>.
+
+Some modules which might prove interesting are Class::Accessor,
+Class::Class, Class::Contract, Class::Data::Inheritable,
+Class::MethodMaker and Tie::SecureHash
=head1 COPYRIGHT