in reply to Re^4: How do I determine the underlying type of an Object?
in thread How do I determine the underlying type of an Object?
If somebody wants to use them they are free to do so.
Yes, and that somebody would be a fool for doing so.
but it's legal.
Legal, but stupid. Just like using symbolic references instead of real ones is legal, but stupid. And many other things that are both possible and to be avoided.
there is a good way of finding out the underlying type (reftype)
Scalar::Util is quite heavy. I know Perl hackers are supposed to not care about memory usage, but I do think pulling in 400 kB is a bit too much to work around potential problems that in practice don't exist.
I'm willing to sacrifice memory for speed. Not to work around unlikely, theoretical problems :)
Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re6: How do I determine the underlying type of an Object?
by dragonchild (Archbishop) on Apr 21, 2003 at 15:52 UTC | |
by Juerd (Abbot) on Apr 21, 2003 at 16:14 UTC |