[Chicago-talk] Object interogation
me at heyjay.com
Tue Oct 25 06:09:21 PDT 2005
During the Ruby presentation, we saw that Ruby provides for object
interrogation/inspection/whatever_its_called - that is you can ask an
object what methods it responds to, and I think ask it what it's
attributes are too.
Can you do the same with Perl? I know you can ->can, but that requires
prior knowledge of method names. I can't think of how you'd get object
So is/are there functions in Perl that return a list of methods and/or
attributes on a given object/class?
If not in Perl5 how about Perl6?
More information about the Chicago-talk