in reply to why "Bless" in OO Perl
bless causes the reference contained in its first parameter to become an object of the class specified in the second argument. The reference is essentially "blessed into a class.", or possibly more descriptively, "promoted", or "reborn" into a class.
Before being blessed, a reference is just a reference. After being blessed, it's an object instance of a particular class.
If you're looking for a good book on the subject, I highly recommend merlyn's "Alpaca book", Learning Perl Objects, References & Modules.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why "Bless" in OO Perl
by Fletch (Bishop) on May 03, 2006 at 13:13 UTC | |
by davido (Cardinal) on May 03, 2006 at 15:37 UTC | |
by Roy Johnson (Monsignor) on May 03, 2006 at 17:34 UTC | |
by Fletch (Bishop) on May 03, 2006 at 17:54 UTC |