On Thu, Aug 07, 2003 at 09:01:57AM -0500, Dan Muey wrote:
> 
> Cool! 1 quick question why do you have @methods?

sorry old remnant. just delete.

martin

> If it's because you use @{ $methods } then $methods would have to be the string 
> 'methods' to be a reference to @methods, which doesn't have any data as far as I can 
> tell.
> 
> Maybe I'm missing something?
> 
> Dan
> 
> > problem solved:
> > 
> > given an arbitrary object, i can now get a dump of all the 
> > functions connected to the object.
> > 
> > print &dump_functions( $obj );
> > 
> > sub dump_functions
> > {
> >     use Data::Dumper;
> >     use Class::Inspector;
> > 
> >     my ( $obj ) = @_;
> > 
> >     my ( $ref, $methods, @methods );
> > 
> >     $ref     = ref $obj;
> >     $methods = Class::Inspector->methods( $ref, 'full', 'public' );
> > 
> >     @{ $methods } = grep /$ref/, @{ $methods };
> > 
> >     return Dumper( $methods );
> > }
> > 
> > 
> > 
> > On Tue, Aug 05, 2003 at 12:19:57PM +0200, Martin A. Hansen wrote:
> > > hi
> > > 
> > > i wonder how i can list all the methods availible from a 
> > given object?
> > > 
> > > martin
> > > 
> > > --
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > -- 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to