in reply to Object properties and Methods

You can use the Perl debugger to get to the point where you have the object created and enter the command "m $object" to see the list of methods and what package provides them. Then, if the object is typical, enter the command "x keys %$object" to get the list of properties. Unless the object is wicked (such as those blessed file handles that have become so popular), the command "x $object" will dump the whole object data structure.

I hope that helps.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: Object properties and Methods
by fmogavero (Monk) on Mar 23, 2001 at 19:56 UTC
    Thanks. Can I put "x keys %$object" into a hash. I am creating an object that has properties populated from a database, file or other source. My initial thought was that if I could return a list of properties, I could cycle through it and obtain the data values for each. Listing the methods would be for troubleshooting.
      Perhaps you should have a look at Data::Dumper, to see how to get all the properties.