On 2/17/06, Ken Perl <[EMAIL PROTECTED]> wrote:
> what does the statement mean?
>
> bless $self, $class;
snip

This is how you make objects in Perl.  The bless function adds some
meta data to the variable that is blessed telling it that it is now of
class $class.  You will usually see this at the end of functions named
new in an OO module.

You may want to read the perldocs perlboot, perltoot, perltooc, and perlbot.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to