Bless is a function in Perl, which associates an object with a class.
In perl, in order to use references (hard references, not soft references) as objects of a class (or package), we need to associate references with a class first. This is done by using the bless function.