Uri Guttman wrote:
> 
> >>>>> "SR" == Stephen Reppucci <[EMAIL PROTECTED]> writes:

>   >> $self->print( $text ) ;

> pedantic and wrong. :)
> 
> $self is not a handle but contains a handle and other info as well.
> that is a line from within a write() method in the Stem::Log::File
> class.

Wrong, that is, unless there is a print() method in the class to which the 
object belongs. For instance, $self's class may inherit from IO::File. 

For those seeking OO bliss, do check out Damian Conway's 
_Object Oriented Perl_  or any of the several OO tutorials 
that come with the standard perl docs.

For the record, I always attempt to use accessor methods 
outside the class definition (yes, I find I have to cheat 
sometimes). Even in child class, I use accessors. The more 
people you expect to be using your code, the more important 
object hygene becomes. 

-- 
----------------
Joe Johnston -- http://taskboy.com
Software Consultant: Web - Database - Perl
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to