$hash = {};
^^^^^ ^^
referrer referent
In the following statement:
$self = bless( $hash, $pkg );
blessdenotes the referent (anonymous hash) to which it relates $hashas an object $pkg(HTML :: Template class). It does not change the variable $hash.
The function blessreturns a link to a blissful anonymous hash. $selftherefore, it becomes a reference to the blessed anonymous hash (referent).
, bless , , , , :
$self = bless( $self, $pkg );
$self - undef. . :
$self = bless( undef, $pkg );
.