Otherwise any blessed scalar is another type?
I tend to think that a scalar has a reference to a blessed thing rather than the scalar itself being blessed.
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.
In reply to Re^3: What are all the Perl data types?
by kyle
in thread What are all the Perl data types?
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |