I understand one uses the "bless" keyword in Perl inside a class's "new" method:
sub new {
my $self = bless { };
return $self;
}
But what exactly is "bless" doing to that hash reference ?
转载于:https://stackoverflow.com/questions/392135/what-exactly-does-perls-bless-do