in reply to Re^2: What are all the Perl data types?
in thread What are all the Perl data types?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: What are all the Perl data types?
by jettero (Monsignor) on May 03, 2007 at 12:55 UTC |