perl.cvs.perlfaq
[Top] [All Lists]

[svn:perlfaq] r11411 - perlfaq/trunk

Subject: [svn:perlfaq] r11411 - perlfaq/trunk
From: comdog@xxxxxxxxxxxx
Date: Wed, 11 Jun 2008 15:31:30 -0700 (PDT)
Newsgroups: perl.cvs.perlfaq

Author: comdog
Date: Wed Jun 11 15:31:29 2008
New Revision: 11411

Modified:
   perlfaq/trunk/perlfaq7.pod

Log:
* perlfaq7: How do I create a class?
        + replaced the answer to answer the question as well as pointing
        to other references.


Modified: perlfaq/trunk/perlfaq7.pod
==============================================================================
--- perlfaq/trunk/perlfaq7.pod  (original)
+++ perlfaq/trunk/perlfaq7.pod  Wed Jun 11 15:31:29 2008
@@ -239,8 +239,17 @@
 
 =head2 How do I create a class?
 
-See L<perltoot> for an introduction to classes and objects, as well as
-L<perlobj> and L<perlbot>.
+(contributed by brian d foy)
+
+In Perl, a class is just a package, and methods are just subroutines.
+Perl doesn't get more formal than that and lets you set up the package
+just the way that you like it (that is, it doesn't set up anything for
+you).
+
+The Perl documentation has several tutorials that cover class
+creation, including L<perlboot> (Barnyard Object Oriented Tutorial),
+L<perltoot> (Tom's Object Oriented Tutorial), L<perlbot> (Bag o'
+Object Tricks), and L<perlobj>.
 
 =head2 How can I tell if a variable is tainted?
 

<Prev in Thread] Current Thread [Next in Thread>
  • [svn:perlfaq] r11411 - perlfaq/trunk, comdog <=