References - User-defined Types We can create a new type by blessing references: $ref = bless \%baz, "MyType" ref $ref; # Returns "MyType" instead of "HASH" This is the basis of object-oriented Perl, but that is a much longer presentation.