my $unblessed = {};
my $blessed = $unblessed;
bless $blessed, 'Holy::Holy';
printf "%s\n%s\n", ref $unblessed, ref $blessed;
__END__
Holy::Holy
Holy::Holy
That's just a nitpick, though.
I ordinarily wouldn't think of some user-created object as being a separate data type except that they can be overloaded to act just like one. Where does something like Math::BigInt fit in? I think this is a point on which reasonable people can disagree.
That also makes me wonder if we could count iterators somehow.
I don't know what you mean by this. |