bless attaches a class name to a reference. When I call a method on the reference, Perl looks in that class to find the method.
The return value is just the reference, now with the class label attached to it. See the bless entry in perlfunc for the details.
In reply to Re: why "Bless" in OO Perl
by brian_d_foy
in thread why "Bless" in OO Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |