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]