From: Michael G. Schwern Date: Sun, 4 Feb 2001 21:17:49 +0000 (-0500) Subject: Re: [PATCH pod/[bt]ootc?.pod] Adding mention of useful CPAN modules X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8257a158a240b1ac87c8767f1a5f236a029fb9c4;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH pod/[bt]ootc?.pod] Adding mention of useful CPAN modules Message-Id: <20010204211748.A13415@blackrider.aocn.com> p4raw-id: //depot/perl@8708 --- diff --git a/pod/perlboot.pod b/pod/perlboot.pod index b549f45..3c18246 100644 --- a/pod/perlboot.pod +++ b/pod/perlboot.pod @@ -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 diff --git a/pod/perlobj.pod b/pod/perlobj.pod index 9a9bda9..285ed99 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 and L. You should also check -out L for other object tricks, traps, and tips, as well -as L 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, L and L. You should +also check out L for other object tricks, traps, and tips, as +well as L for some style guides on constructing both +modules and classes. diff --git a/pod/perltoot.pod b/pod/perltoot.pod index 594cb99..38cc1f3 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, and L. +L is a kinder, gentler introduction to object-oriented +programming. + +L 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 ee0bd02..d2d881c 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, L, L, and L. -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