diff options
author | Michael G. Schwern <schwern@pobox.com> | 2001-02-04 16:17:49 -0500 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-02-06 20:41:20 +0000 |
commit | 8257a158a240b1ac87c8767f1a5f236a029fb9c4 (patch) | |
tree | 4dac8e34334845a2722847cafdbbc5bd53a77334 /pod | |
parent | cfcce72b50f40ca45fd2b724ac56017253f5ae83 (diff) | |
download | perl-8257a158a240b1ac87c8767f1a5f236a029fb9c4.tar.gz |
Re: [PATCH pod/[bt]ootc?.pod] Adding mention of useful CPAN modules
Message-Id: <20010204211748.A13415@blackrider.aocn.com>
p4raw-id: //depot/perl@8708
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlboot.pod | 10 | ||||
-rw-r--r-- | pod/perlobj.pod | 10 | ||||
-rw-r--r-- | pod/perltoot.pod | 14 | ||||
-rw-r--r-- | pod/perltootc.pod | 14 |
4 files changed, 38 insertions, 10 deletions
diff --git a/pod/perlboot.pod b/pod/perlboot.pod index b549f45e49..3c18246f0c 100644 --- a/pod/perlboot.pod +++ b/pod/perlboot.pod @@ -790,9 +790,13 @@ Hopefully, this gets you started, though. 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 diff --git a/pod/perlobj.pod b/pod/perlobj.pod index 9a9bda94d9..285ed9975e 100644 --- a/pod/perlobj.pod +++ b/pod/perlobj.pod @@ -559,8 +559,8 @@ breaks the circularities in the self-referential structure. =head1 SEE ALSO -A kinder, gentler tutorial on object-oriented programming in Perl -can be found in L<perltoot> and L<perltootc>. You should also check -out L<perlbot> for other object tricks, traps, and tips, as well -as L<perlmodlib> for some style guides on constructing both modules -and classes. +A kinder, gentler tutorial on object-oriented programming in Perl can +be found in L<perltoot>, L<perlbootc> and L<perltootc>. You should +also check out L<perlbot> for other object tricks, traps, and tips, as +well as L<perlmodlib> for some style guides on constructing both +modules and classes. diff --git a/pod/perltoot.pod b/pod/perltoot.pod index 594cb99daa..38cc1f3e65 100644 --- a/pod/perltoot.pod +++ b/pod/perltoot.pod @@ -425,6 +425,10 @@ this could be done: Notice how there's no memory to deallocate in the destructor? That's something that Perl takes care of for you all by itself. +Alternatively, you could use the Class::Data::Inheritable module from +CPAN. + + =head2 Accessing Class Data It turns out that this is not really a good way to go about handling @@ -1750,6 +1754,16 @@ L<perltie>, and L<overload>. +L<perlboot> is a kinder, gentler introduction to object-oriented +programming. + +L<perltootc> provides more detail on class data. + +Some modules which might prove interesting are Class::Accessor, +Class::Class, Class::Contract, Class::Data::Inheritable, +Class::MethodMaker and Tie::SecureHash + + =head1 AUTHOR AND COPYRIGHT Copyright (c) 1997, 1998 Tom Christiansen diff --git a/pod/perltootc.pod b/pod/perltootc.pod index ee0bd02f62..d2d881c999 100644 --- a/pod/perltootc.pod +++ b/pod/perltootc.pod @@ -74,6 +74,15 @@ you can elect to permit access to them from anywhere in the entire file scope, or you can limit direct data access exclusively to the methods implementing those attributes. +=head1 Class Data in a Can + +One of the easiest ways to solve a hard problem is to let someone else +do it for you! In this case, Class::Data::Inheritable (available on a +CPAN near you) offers a canned solution to the class data problem +using closures. So before you wade into this document, consider +having a look at that module. + + =head1 Class Data as Package Variables Because a class in Perl is really just a package, using package variables @@ -1302,7 +1311,8 @@ would just confuse the examples. L<perltoot>, L<perlobj>, L<perlmod>, and L<perlbot>. -The Tie::SecureHash module from CPAN is worth checking out. +The Tie::SecureHash and Class::Data::Inheritable modules from CPAN are +worth checking out. =head1 AUTHOR AND COPYRIGHT @@ -1334,4 +1344,4 @@ object-oriented languages enforce. =head1 HISTORY -Last edit: Fri May 21 15:47:56 MDT 1999 +Last edit: Sun Feb 4 20:50:28 EST 2001 |