411 REFERENCE · Wikibooks
Perl Programming/Keywords/bless
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl binmode break Keywords
The bless keyword
The bless function tells the thingy REFERENCEd that it is an object in the CLASSNAME package. Without the word CLASSNAME, the current package is understood.
As bless is often the last command in the constructor, it returns a reference to the object.
Syntax
bless REFERENCE, CLASSNAME
bless REFERENCE
Perl binmode break Keywords