Randy W. Sims wrote:
>
> On 02/20/04 01:35, Jacob Chapa wrote:
>
> > what does bless do?
>
> It depends on how much you know. ;-)
>
> Basically it takes a reference to a perl type and tags it as an object,
> so that in addition to being a reference to a type, it now has special
> properties: primarily that it can have subroutines (methods) associated
> with it. It's a reference on steroids.

More exactly, it a thing (hash, array, or scalar) that a reference
refers to with the name of a package. Thereafter Perl will look
in that package to find the subroutines which form the object's
method calls.

Rob



-- 
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