in reply to Re: Module Data Dump.
in thread Module Data Dump.

Well, the thing I was asking was how would I call the method defined in the variable. I already have the code testing with UNIVERSAL::can. I think I have just about figured it out:

my $data = &{$object->$method}; # do stuff with Data...

I will check out those modules though, cause there are several high chances that they will do this better than me.

Sorry about how short my last message was, I was running out of time on a public terminal.

DakeDesu teh Confused Werewolf.
In perl, only those who are bless'd are treated as objects
(Webpages under construction)

Replies are listed 'Best First'.
Re: Re: Re: Module Data Dump.
by IlyaM (Parson) on Mar 27, 2002 at 22:58 UTC

      You mean that will actually work? Well, it certainly seems logical :)

      DakeDesu teh Confused Werewolf.
      In perl, only those who are bless'd are treated as objects
      (Webpages under construction)

        Have you tried?

        my $does = bless {}, 'Test'; my $it = 'test'; my $answer = $does->$it('work?'); print $answer, "\n"; package Test; sub test { return 'Sure'; }

        --
        Ilya Martynov (http://martynov.org/)