X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlboot.pod;h=3c18246f0ca4ed3ce3d63266c110f51973b5a047;hb=ec861bc19fa3da942464628dd3e86e9b82994ca4;hp=c9ee9a5aff5904278c06da98224e419c8e926e2c;hpb=697934ef381c2fbd2ff49c5e4b22e596a509b7a0;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlboot.pod b/pod/perlboot.pod index c9ee9a5..3c18246 100644 --- a/pod/perlboot.pod +++ b/pod/perlboot.pod @@ -87,8 +87,8 @@ And once again, this results in: 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 @@ -392,8 +392,8 @@ So far, we've seen the method arrow syntax: or the equivalent: - $x = "Class"; - $x->method(@args); + $a = "Class"; + $a->method(@args); which constructs an argument list of: @@ -790,9 +790,13 @@ Hopefully, this gets you started, though. For more information, see L (for all the gritty details about Perl objects, now that you've seen the basics), L (the -tutorial for those who already know objects), L (for some -more tricks), and books such as Damian Conway's excellent I. +tutorial for those who already know objects), L (dealing +with class data), L (for some more tricks), and books such as +Damian Conway's excellent I. + +Some modules which might prove interesting are Class::Accessor, +Class::Class, Class::Contract, Class::Data::Inheritable, +Class::MethodMaker and Tie::SecureHash =head1 COPYRIGHT