Home  |  Linux  | Mysql  | PHP  | XML
From:comdog@cvs.perl.org Date:Wed Jun 11 16:31:30 2008
Subject:[svn:perlfaq] r11411 - perlfaq/trunk
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?
 
Navigate in group perl.cvs.perlfaq at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants