Just another Perl shrine | |
PerlMonks |
Re^2: Is there a way to find out what kind of ref an object is?by johnnywang (Priest) |
on Dec 07, 2005 at 02:12 UTC ( [id://514708]=note: print w/replies, xml ) | Need Help?? |
well, exactly, it's dangerous. My impression of the purpose of inside-out objects is to prevent users from messing up the contents of hashref in the implementation, which I assume means directly change the content via the object reference, and to do that one needs to know its type (reference of hash, array, scalar , etc.), hence my original question.
In Section
Seekers of Perl Wisdom
|
|